mirror of
https://github.com/Sliverkiss/QuantumultX.git
synced 2025-12-17 23:35:22 +08:00
Update SakuraUtil.js
This commit is contained in:
@@ -13,7 +13,7 @@ async function loadSakuraUtils() {
|
|||||||
if (code && Object.keys(code).length) {
|
if (code && Object.keys(code).length) {
|
||||||
console.log(`✅ ${$.name}: 缓存中存在SakuraUtil代码, 跳过下载`)
|
console.log(`✅ ${$.name}: 缓存中存在SakuraUtil代码, 跳过下载`)
|
||||||
eval(code)
|
eval(code)
|
||||||
return createUtils();
|
return creatUtils();
|
||||||
}
|
}
|
||||||
console.log(`🚀 ${$.name}: 开始下载SakuraUtil代码`)
|
console.log(`🚀 ${$.name}: 开始下载SakuraUtil代码`)
|
||||||
return new Promise(async (resolve) => {
|
return new Promise(async (resolve) => {
|
||||||
@@ -22,7 +22,7 @@ async function loadSakuraUtils() {
|
|||||||
).then((fn) => {
|
).then((fn) => {
|
||||||
$.setdata(fn, SakuraUtil_code)
|
$.setdata(fn, SakuraUtil_code)
|
||||||
eval(fn)
|
eval(fn)
|
||||||
const SakuraUtil = createUtils();
|
const SakuraUtil = creatUtils();
|
||||||
console.log(`✅ SakuraUtil加载成功, 请继续`)
|
console.log(`✅ SakuraUtil加载成功, 请继续`)
|
||||||
resolve(SakuraUtil)
|
resolve(SakuraUtil)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user