forked from 0x2620/pandora
better isEmbed check
This commit is contained in:
parent
99fbf9f2d9
commit
71a51cb175
1 changed files with 2 additions and 1 deletions
|
@ -34,7 +34,8 @@ appPanel
|
||||||
var animationInterval,
|
var animationInterval,
|
||||||
enableDebugMode = localStorage && localStorage['pandora.enableDebugMode'],
|
enableDebugMode = localStorage && localStorage['pandora.enableDebugMode'],
|
||||||
enableEventLogging = localStorage && localStorage['pandora.enableEventLogging'],
|
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),
|
isMSIE = /MSIE/.test(navigator.userAgent),
|
||||||
legacyThemes = {classic: 'oxlight', modern: 'oxdark'},
|
legacyThemes = {classic: 'oxlight', modern: 'oxdark'},
|
||||||
theme = localStorage && localStorage['Ox.theme']
|
theme = localStorage && localStorage['Ox.theme']
|
||||||
|
|
Loading…
Reference in a new issue