Skip to content

Commit e03936e

Browse files
committed
🔧 build(1.1.1): firefox 严格模式
1 parent 24a31b8 commit e03936e

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

dist/chrome/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "wechat-need-web",
44
"author": "lqzh",
55
"homepage_url": "https://github.com/lqzhgood/wechat-need-web",
6-
"version": "1.1.0",
6+
"version": "1.1.1",
77
"description": "Allow the use of WeChat via webpage access",
88
"permissions": [
99
"declarativeNetRequest"

dist/firefox/firefox.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const url = new URL(window.location.href);
2-
1+
'use strict';
2+
const url = new URL(window.location);
33
if (url.searchParams.get('target') !== 't') {
4-
url.searchParams.set('target', 't')
5-
window.location.href = url.toString();
4+
url.searchParams.set('target', 't');
5+
window.location.href = url.href;
66
}

dist/firefox/manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "wechat-need-web",
44
"author": "lqzh",
55
"homepage_url": "https://github.com/lqzhgood/wechat-need-web",
6-
"version": "1.1.0",
6+
"version": "1.1.1",
77
"description": "Allow the use of WeChat via webpage access",
88
"permissions": [
99
"declarativeNetRequest",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wechat-need-web",
3-
"version": "1.1.0",
3+
"version": "1.1.1",
44
"description": "Allow WeChat to access the webpage.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)