We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 54ee698 commit 37787fcCopy full SHA for 37787fc
src/assets/static/firefox/firefox.js
@@ -1,6 +1,6 @@
1
-const url = new URL(window.location.href);
2
-
+'use strict';
+const url = new URL(window.location);
3
if (url.searchParams.get('target') !== 't') {
4
- url.searchParams.set('target', 't')
5
- window.location.href = url.toString();
+ url.searchParams.set('target', 't');
+ window.location.href = url.href;
6
}
0 commit comments