From 61cd0f361133eacebdceffb00f4a337ade989540 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 9 May 2024 00:19:25 +0800 Subject: [PATCH] =?UTF-8?q?api=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- branch/latest/md5.js | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/branch/latest/md5.js b/branch/latest/md5.js index 6a64f76..e69a501 100644 --- a/branch/latest/md5.js +++ b/branch/latest/md5.js @@ -29,7 +29,7 @@ let run_env = { from_code: (typeof window == "undefined"), is_node: (typeof Bun == "undefined"), is_bun: (typeof Bun != "undefined"), - cli_args: [], + version: _version_, }; /** @@ -130,19 +130,12 @@ function fmt_RunUpdate(update) { } if (run_env.from_code) { - console.log("正在运行 md5.js 作为单独的脚本"); - console.log("版本号: " + _version_); - let fs = require("fs"); let path = require("path"); let EventEmitter = require("events"); finish_trigger = new EventEmitter(); - // 把 cli 参数传进来 - run_env.cli_args = process.argv; - // 整一套虚拟的window和document - // 但说实话十分生草 // list of elements let stored_elements = [];