From 342044ab200b9dad6421fc2ba981751ca0cf13f6 Mon Sep 17 00:00:00 2001 From: nonameShijian <2954700422@qq.com> Date: Wed, 27 Mar 2024 16:42:36 +0800 Subject: [PATCH] add todo --- game/entry.js | 1 + game/game.js | 1 + 2 files changed, 2 insertions(+) diff --git a/game/entry.js b/game/entry.js index beeeb229c..6678ac740 100644 --- a/game/entry.js +++ b/game/entry.js @@ -4,6 +4,7 @@ import { userAgent } from "../noname/util/index.js"; const coreAndVersion = get.coreInfo(); const core = coreAndVersion[0], version = coreAndVersion[1]; +//@todo: 77 -> 80 if (core === 'chrome' && !isNaN(version) && version < 77) { const tip = '检测到您的浏览器内核版本小于77,请及时升级浏览器或手机webview内核!'; console.warn(tip); diff --git a/game/game.js b/game/game.js index ddd50bb99..f071cb26e 100644 --- a/game/game.js +++ b/game/game.js @@ -166,6 +166,7 @@ new Promise(resolve => { // 使用ts compiler对ts文件进行编译 const result = ts.transpile(code, { module: ts.ModuleKind.CommonJS, + //@todo: ES2019 -> ES2020 target: ts.ScriptTarget.ES2019, inlineSourceMap: true, resolveJsonModule: true,