jellyfish-web/src/scripts/autoThemes.js

12 lines
377 B
JavaScript
Raw Normal View History

import * as userSettings from 'userSettings';
import skinManager from 'skinManager';
import events from 'events';
// Set the default theme when loading
skinManager.setTheme(userSettings.theme());
// Set the user's prefered theme when signing in
2020-08-30 06:06:47 +02:00
events.on(window.connectionManager, 'localusersignedin', function (e, user) {
skinManager.setTheme(userSettings.theme());
});