Skip to content

Commit

Permalink
🔧 build(1.1.1): firefox 严格模式
Browse files Browse the repository at this point in the history
  • Loading branch information
lqzhgood committed Nov 11, 2023
1 parent 24a31b8 commit e03936e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/chrome/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
8 changes: 4 additions & 4 deletions dist/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;
}
2 changes: 1 addition & 1 deletion dist/firefox/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down

0 comments on commit e03936e

Please sign in to comment.