Skip to content

Commit 37787fc

Browse files
authored
Update firefox.js
1 parent 54ee698 commit 37787fc

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)