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": {