From 9858121b5a877377e90645b5d508421228ce2abe Mon Sep 17 00:00:00 2001 From: rolux Date: Tue, 19 Feb 2013 17:18:25 +0530 Subject: [PATCH] on load, make sure theme is valid --- static/js/pandora.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/pandora.js b/static/js/pandora.js index 5210c90b..68a12a7c 100644 --- a/static/js/pandora.js +++ b/static/js/pandora.js @@ -241,6 +241,10 @@ appPanel }); // patch theme ... this can be removed at a later point pandora.user.ui.theme = legacyThemes[pandora.user.ui.theme] || pandora.user.ui.theme; + // make sure theme is valid + if (!Ox.contains(pandora.site.themes, pandora.user.ui.theme)) { + pandora.user.ui.theme = pandora.site.user.ui.theme; + } // patch itemView ... this can be removed at a later point if (pandora.user.ui.itemView == 'video') { pandora.user.ui.itemView = 'player';