修复.load报错

This commit is contained in:
strawberry 2025-09-22 14:24:07 +08:00
parent 0e6427ed2d
commit 7b02968cb0

View File

@ -277,9 +277,10 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 =
core.ele = [] core.ele = []
core.ele.push(a)*/ core.ele.push(a)*/
if (!main.replayChecking && !core.isReplaying())
core.startUpdate() core.startUpdate()
Promise.all([document.fonts.load("24px STHUPO"), document.fonts.load("16px cjk")]).then(core.startUpdate) if (main.replayChecking){
Promise.all([document.fonts.load("24px STHUPO"), document.fonts.load("16px cjk")]).then(core.startUpdate)}
}; };
class JsonCrypto { class JsonCrypto {
static async generateKeyFromPassword(password, salt) { static async generateKeyFromPassword(password, salt) {