forked from chavyleung/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8922569
commit 3515a93
Showing
4 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ const $ = new Env('BoxJs') | |
// 为 eval 准备的上下文环境 | ||
const $eval_env = {} | ||
|
||
$.version = '0.7.60' | ||
$.version = '0.7.61' | ||
$.versionType = 'beta' | ||
|
||
// 发出的请求需要需要 Surge、QuanX 的 rewrite | ||
|
@@ -343,6 +343,13 @@ function getSystemApps() { | |
function getUserCfgs() { | ||
const defcfgs = { favapps: [], appsubs: [], isPinedSearchBar: true, httpapi: '[email protected]:6166' } | ||
const usercfgs = Object.assign(defcfgs, $.getjson($.KEY_usercfgs, {})) | ||
|
||
// 处理异常数据:删除所有为 null 的订阅 | ||
if (usercfgs.appsubs.includes(null)) { | ||
usercfgs.appsubs = usercfgs.appsubs.filter((sub) => sub) | ||
$.setjson(usercfgs, $.KEY_usercfgs) | ||
} | ||
|
||
return usercfgs | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ const $ = new Env('BoxJs') | |
// 为 eval 准备的上下文环境 | ||
const $eval_env = {} | ||
|
||
$.version = '0.7.60' | ||
$.version = '0.7.61' | ||
$.versionType = 'beta' | ||
|
||
// 发出的请求需要需要 Surge、QuanX 的 rewrite | ||
|
@@ -343,6 +343,13 @@ function getSystemApps() { | |
function getUserCfgs() { | ||
const defcfgs = { favapps: [], appsubs: [], isPinedSearchBar: true, httpapi: '[email protected]:6166' } | ||
const usercfgs = Object.assign(defcfgs, $.getjson($.KEY_usercfgs, {})) | ||
|
||
// 处理异常数据:删除所有为 null 的订阅 | ||
if (usercfgs.appsubs.includes(null)) { | ||
usercfgs.appsubs = usercfgs.appsubs.filter((sub) => sub) | ||
$.setjson(usercfgs, $.KEY_usercfgs) | ||
} | ||
|
||
return usercfgs | ||
} | ||
|
||
|