Skip to content

Commit

Permalink
Merge pull request #8 from helloworldSB/patch-1
Browse files Browse the repository at this point in the history
Update firefox.js strict
  • Loading branch information
lqzhgood authored Nov 11, 2023
2 parents 54ee698 + 37787fc commit 24a31b8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/assets/static/firefox/firefox.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const url = new URL(window.location.href);

'use strict';
const url = new URL(window.location);
if (url.searchParams.get('target') !== 't') {
url.searchParams.set('target', 't')
window.location.href = url.toString();
url.searchParams.set('target', 't');
window.location.href = url.href;
}

0 comments on commit 24a31b8

Please sign in to comment.