ARTEMIS-1270 Enforce Theming

On some browsers during initial, storage may have set to another theme, enforce the theme on branding load.
This commit is contained in:
Michael Andre Pearce 2017-09-01 06:04:41 +01:00 committed by Clebert Suconic
parent 022d5ba853
commit e8783e31d0
1 changed files with 7 additions and 3 deletions

View File

@ -59,10 +59,14 @@ var activemqBranding = (function (self) {
self.module = angular.module(self.pluginName, ['hawtioCore']);
self.module.run(function (branding) {
self.log.debug("ActivMQ theme loaded");
self.log.info("ActiveMQ theme loaded");
if (localStorage['theme'] != 'activemq' || localStorage['branding'] != 'activemq') {
localStorage['theme'] = 'activemq';
localStorage['branding'] = 'activemq';
location.reload();
}
});
hawtioPluginLoader.addModule(self.pluginName);
return self;
})(activemqBranding || {});
hawtioPluginLoader.addModule(activemqBranding.pluginName);