From 5e76fde32cc4327313278c4f93b653cb81e802da Mon Sep 17 00:00:00 2001 From: shenjack-5600u <3695888@qq.com> Date: Mon, 1 Apr 2024 20:40:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=86=E5=A4=87=E8=BF=9B=E8=A1=8C=E4=B8=80?= =?UTF-8?q?=E4=BA=9B=E5=A4=A7=E7=9A=84=E6=94=B9=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- branch/latest/md5.js | 45 ++++++++++++++++++++++++++++++++------------ 1 file changed, 33 insertions(+), 12 deletions(-) diff --git a/branch/latest/md5.js b/branch/latest/md5.js index 4396fe0..956967b 100644 --- a/branch/latest/md5.js +++ b/branch/latest/md5.js @@ -1,3 +1,20 @@ +let from_node = typeof window == "undefined"; +if (from_node) { + console.log("Running from node"); + + let name_input = "test\ntest2"; + + let window = { + // localStorage: { + + // }, + // sessionStorage: { + + // }, + }; + +} + let why_ns = 0; (function dartProgram() { @@ -4419,18 +4436,22 @@ let why_ns = 0; } while (true) switch (async_goto) { case 0: - a8 = LangData.oC(true).c - a9 = a8[$.B()] - $.mb = a9 - $.ta = a9 + $.d_() - $.nV = a8[$.C()] - $.nW = a8[$.X()] - $.tb = a8[$.a4()] - // a2 = window.localStorage.getItem(LanData.j("T|a`4tFX30f3:o_Vx]na4ki/|ye&j=D", 15)) - a2 = window.localStorage.getItem("go​ogle_experiment_mod1") - // console.log("a2", a2) - if (a2 != null) { - $.ox = new H.a9(H.b(a2.split(""), t.s), t.bJ).f3(0) + if (from_node) { + console.log("initing from node") + } else { + a8 = LangData.oC(true).c + a9 = a8[$.B()] + $.mb = a9 + $.ta = a9 + $.d_() + $.nV = a8[$.C()] + $.nW = a8[$.X()] + $.tb = a8[$.a4()] + // a2 = window.localStorage.getItem(LanData.j("T|a`4tFX30f3:o_Vx]na4ki/|ye&j=D", 15)) + a2 = window.localStorage.getItem("go​ogle_experiment_mod1") + // console.log("a2", a2) + if (a2 != null) { + $.ox = new H.a9(H.b(a2.split(""), t.s), t.bJ).f3(0) + } } // console.log("$.ox === a2", $.ox === a2) // console.log($.ox)