Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Snowflake
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
trinity-1686a
Snowflake
Commits
6e95581f
Commit
6e95581f
authored
5 years ago
by
Arlo Breault
Browse files
Options
Downloads
Patches
Plain Diff
Don't overwrite global location
parent
3455cd5d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
proxy/init-badge.js
+1
-1
1 addition, 1 deletion
proxy/init-badge.js
proxy/shims.js
+1
-4
1 addition, 4 deletions
proxy/shims.js
with
2 additions
and
5 deletions
proxy/init-badge.js
+
1
−
1
View file @
6e95581f
...
...
@@ -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
);
...
...
This diff is collapsed.
Click to expand it.
proxy/shims.js
+
1
−
4
View file @
6e95581f
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment