From d75d3a48479314a8457c3746e54255b6bea5cc3f Mon Sep 17 00:00:00 2001 From: Greg Fodor <gfodor@gmail.com> Date: Tue, 22 May 2018 22:38:31 -0700 Subject: [PATCH] Use rawgit URL for logging hack --- src/hub.html | 4 ++++ src/hub.js | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/hub.html b/src/hub.html index 62d498438..c1d26a7ce 100644 --- a/src/hub.html +++ b/src/hub.html @@ -17,6 +17,10 @@ <% } else { %> <script src="https://cdn.rawgit.com/aframevr/aframe/3e7a4b3/dist/aframe-master.js" integrity="sha384-EaMOuyBOi9ERV/lVDwQgz/yFWBDWPsIju5Co6oCZZHXuvbLBO81yPWn80q0BbBn3" crossorigin="anonymous"></script> <% } %> + + + <!-- HACK: this has to run after A-Frame but before our bundle, since A-Frame blows away the local storage setting --> + <script src="https://cdn.rawgit.com/gfodor/ba8f88d9f34fe9cbe59a01ce3c48420d/raw/03e31f0ef7b9eac5e947bd39e440f34df0701f75/naf-janus-adapter-logging.js" integrity="sha384-4q1V8Q88oeCFriFefFo5uEUtMzbw6K116tFyC9cwbiPr6wEe7050l5HoJUxMvnzj" crossorigin="anonymous"></script> </head> <body data-html-prefix="<%= HTML_PREFIX %>"> diff --git a/src/hub.js b/src/hub.js index e2d486de0..da390d985 100644 --- a/src/hub.js +++ b/src/hub.js @@ -1,8 +1,3 @@ -// 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:*"; -} - import "./assets/stylesheets/hub.scss"; import moment from "moment-timezone"; import queryString from "query-string"; -- GitLab