From e03936e34ba488e356eccfb449e948503a7a980b Mon Sep 17 00:00:00 2001 From: lqzh <9134671+lqzhgood@users.noreply.github.com> Date: Sat, 11 Nov 2023 22:51:55 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20build(1.1.1):=20firefox=20?= =?UTF-8?q?=E4=B8=A5=E6=A0=BC=E6=A8=A1=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/chrome/manifest.json | 2 +- dist/firefox/firefox.js | 8 ++++---- dist/firefox/manifest.json | 2 +- package.json | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/dist/chrome/manifest.json b/dist/chrome/manifest.json index d43a0a8..f6e84bc 100644 --- a/dist/chrome/manifest.json +++ b/dist/chrome/manifest.json @@ -3,7 +3,7 @@ "name": "wechat-need-web", "author": "lqzh", "homepage_url": "https://github.com/lqzhgood/wechat-need-web", - "version": "1.1.0", + "version": "1.1.1", "description": "Allow the use of WeChat via webpage access", "permissions": [ "declarativeNetRequest" diff --git a/dist/firefox/firefox.js b/dist/firefox/firefox.js index f5992ef..0708256 100644 --- a/dist/firefox/firefox.js +++ b/dist/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; } diff --git a/dist/firefox/manifest.json b/dist/firefox/manifest.json index 6e79da6..71de43c 100644 --- a/dist/firefox/manifest.json +++ b/dist/firefox/manifest.json @@ -3,7 +3,7 @@ "name": "wechat-need-web", "author": "lqzh", "homepage_url": "https://github.com/lqzhgood/wechat-need-web", - "version": "1.1.0", + "version": "1.1.1", "description": "Allow the use of WeChat via webpage access", "permissions": [ "declarativeNetRequest", diff --git a/package.json b/package.json index b79cadc..4b5f29e 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "wechat-need-web", - "version": "1.1.0", + "version": "1.1.1", "description": "Allow WeChat to access the webpage.", "main": "index.js", "scripts": {