Skip to content

Commit 3c9be64

Browse files
committed
Update wxOpenFoxok.js
1 parent 4d93381 commit 3c9be64

1 file changed

Lines changed: 5 additions & 8 deletions

File tree

Script/wxOpenFoxok.js

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
const $ = new Env('微信打开Foxok');
1+
const $ = new Env('微信使用默认浏览器');
22

3+
const { headers } = $request;
4+
const res = {};
35
try {
46
let url = $request.url.replace(/&un_area=[\d_]+/g, '');
57

6-
const ua = $request.headers['User-Agent'];
8+
const ua = headers['User-Agent'];
79
if (ua.includes('MicroMessenger')) {
8-
$.msg(
9-
'微信跳转功能',
10-
'💡 微信webview不支持跳转,点击通知跳转。',
11-
$.desc,
12-
`Foxok://url?${url}`
13-
);
10+
res.status = 'HTTP/1.1 206 Partial Content';
1411
}
1512
} catch (error) {
1613
console.log(error);

0 commit comments

Comments
 (0)