Skip to content

Commit aca0802

Browse files
committed
ref: Return location.origin instead of assigning it for IE10
1 parent efaff84 commit aca0802

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

vendor/TraceKit/tracekit.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,12 @@ function getLocationOrigin() {
3838

3939
// Oh dear IE10...
4040
if (!document.location.origin) {
41-
document.location.origin =
41+
return (
4242
document.location.protocol +
4343
'//' +
4444
document.location.hostname +
45-
(document.location.port ? ':' + document.location.port : '');
45+
(document.location.port ? ':' + document.location.port : '')
46+
);
4647
}
4748

4849
return document.location.origin;

0 commit comments

Comments
 (0)