From 458694881a33648250bcf74861a2ec5163c91cb3 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 30 Oct 2016 03:28:45 -0400 Subject: [PATCH] update theme --- dashboard-ui/themes/halloween/theme.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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);