Skip to content

Commit 24a31b8

Browse files
authored
Merge pull request #8 from helloworldSB/patch-1
Update firefox.js strict
2 parents 54ee698 + 37787fc commit 24a31b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const url = new URL(window.location.href);
2-
1+
'use strict';
2+
const url = new URL(window.location);
33
if (url.searchParams.get('target') !== 't') {
4-
url.searchParams.set('target', 't')
5-
window.location.href = url.toString();
4+
url.searchParams.set('target', 't');
5+
window.location.href = url.href;
66
}

0 commit comments

Comments
 (0)