better isEmbed check

This commit is contained in:
rolux 2013-03-01 12:10:14 +05:30
parent 99fbf9f2d9
commit 71a51cb175

View file

@ -34,7 +34,8 @@ appPanel
var animationInterval,
enableDebugMode = localStorage && localStorage['pandora.enableDebugMode'],
enableEventLogging = localStorage && localStorage['pandora.enableEventLogging'],
isEmbed = /embed=true/.test(document.location.hash),
isEmbed = /^#\?/.test(document.location.hash)
&& /embed=true/.test(document.location.hash),
isMSIE = /MSIE/.test(navigator.userAgent),
legacyThemes = {classic: 'oxlight', modern: 'oxdark'},
theme = localStorage && localStorage['Ox.theme']