diff --git a/src/hub.html b/src/hub.html index b72fa2461f370c3dd8b95f7f90da0ff63440aefd..84fdef5aad8143b197be7d1b2d494c6ea771e44e 100644 --- a/src/hub.html +++ b/src/hub.html @@ -19,8 +19,8 @@ <% } %> <script> - // HACK this has to run after A-Frame but before our bundle, since A-Frame blows away the local storage setting - if (/[&?]debug=true/.test(document.location.search) && typeof(localStorage) !== 'undefined') { + // HACK: this has to run after A-Frame but before our bundle, since A-Frame blows away the local storage setting + if (/[&?]debug=true/.test(window.location.search) && typeof localStorage !== "undefined") { localStorage.debug = "naf-janus-adapter:*"; } </script>