Skip to content
Snippets Groups Projects
Commit 6e95581f authored by Arlo Breault's avatar Arlo Breault
Browse files

Don't overwrite global location

parent 3455cd5d
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ var snowflake, query, debug, silenceNotifications, log, dbg, init;
snowflake = null;
query = Query.parse(location);
query = Query.parse(location.search.substr(1));
debug = Params.getBool(query, 'debug', false);
......
......@@ -10,7 +10,7 @@ if (typeof module !== "undefined" && module !== null ? module.exports : void 0)
}
};
chrome = {};
location = '';
location = { search: '' };
if ((typeof TESTING === "undefined" || TESTING === null) || !TESTING) {
webrtc = require('wrtc');
PeerConnection = webrtc.RTCPeerConnection;
......@@ -20,9 +20,6 @@ if (typeof module !== "undefined" && module !== null ? module.exports : void 0)
({ XMLHttpRequest } = require('xmlhttprequest'));
}
} else {
document = window.document;
chrome = window.chrome;
location = window.location.search.substr(1);
PeerConnection = window.RTCPeerConnection || window.mozRTCPeerConnection || window.webkitRTCPeerConnection;
IceCandidate = window.RTCIceCandidate || window.mozRTCIceCandidate;
SessionDescription = window.RTCSessionDescription || window.mozRTCSessionDescription;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment