diff --git a/dashboard-ui/themes/halloween/theme.js b/dashboard-ui/themes/halloween/theme.js index 5b9a1465d3..732901e803 100644 --- a/dashboard-ui/themes/halloween/theme.js +++ b/dashboard-ui/themes/halloween/theme.js @@ -1,4 +1,4 @@ -define(['appSettings', 'backdrop', 'browser', 'globalize', 'css!./style.css', 'paper-icon-button-light'], function (appSettings, backdrop, browser, globalize) { +define(['appSettings', 'backdrop', 'browser', 'globalize', 'require', 'paper-icon-button-light'], function (appSettings, backdrop, browser, globalize, require) { 'use strict'; var lastSound = 0; @@ -21,6 +21,8 @@ if (!browser.mobile) { + require(['css!./style.css']); + if (!page.classList.contains('itemDetailPage')) { backdrop.setBackdrop('themes/halloween/bg.jpg'); } @@ -98,9 +100,9 @@ currentSound.stop(); } - Dashboard.removeStylesheet('themes/halloween/style.css'); backdrop.clear(); appSettings.set(cancelKey, cancelValue); + window.location.reload(true); } pageClassOn('pageshow', "libraryPage", onPageShow);