From 37787fc49e9e495267f637eba7ffc09a31ef7378 Mon Sep 17 00:00:00 2001 From: helloworldSB <65109494+helloworldSB@users.noreply.github.com> Date: Sat, 11 Nov 2023 16:28:02 +0800 Subject: [PATCH] Update firefox.js --- src/assets/static/firefox/firefox.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/assets/static/firefox/firefox.js b/src/assets/static/firefox/firefox.js index f5992ef..0708256 100644 --- a/src/assets/static/firefox/firefox.js +++ b/src/assets/static/firefox/firefox.js @@ -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; }