This commit is contained in:
Liwanyi 2022-10-19 18:33:24 +08:00
parent 39576c86ba
commit bba1335130
4 changed files with 26 additions and 11 deletions

View File

@ -1,12 +1,20 @@
# TODO
- 翻译baza npc商店、imarket、imarket搜索结果
- 彩票助手
# CHANGE
## 0.6.0
2022年10月19日
### 添加
- 公司助手-火车检测
- 测试添加对Userscript Safari (ios) 的支持
## 0.6.0
2022年10月18日
### 修改

View File

@ -1,6 +1,6 @@
{
"name": "wuhu-torn-helper",
"version": "0.6.0",
"version": "0.6.1",
"description": "芜湖助手",
"dependencies": {},
"scripts": {

File diff suppressed because one or more lines are too long

View File

@ -46,7 +46,11 @@ export default class Global extends WuhuBase implements IGlobal {
Log.info('WH脚本参数[Global]初始化');
super();
this.unsafeWindow = window.unsafeWindow || null;
try {
// 上层调用如果使用eval此处GM_xmlhttpRequest可能不存在与window中
this.GM_xmlhttpRequest = window.GM_xmlhttpRequest || GM_xmlhttpRequest || null;
} catch {
}
this.version = '$$WUHU_DEV_VERSION$$';
this.PDA_APIKey = '###PDA-APIKEY###';
this.isPDA = !this.PDA_APIKey.includes('###');