From 2cc1f8d76c36378c2f302851b09c250e3ffc488b Mon Sep 17 00:00:00 2001 From: Amsyar Rasyiq <82711525+amsyarasyiq@users.noreply.github.com> Date: Wed, 4 Oct 2023 14:01:27 +0800 Subject: [PATCH] [Entry] Make 'freeze' and 'seal' do nothing (#152) --- src/entry.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/entry.ts b/src/entry.ts index 9dfbcf2..dec955b 100644 --- a/src/entry.ts +++ b/src/entry.ts @@ -3,6 +3,10 @@ import { ClientInfoManager } from "@lib/native"; // This logs in the native logging implementation, e.g. logcat console.log("Hello from Vendetta!"); +// Make 'freeze' and 'seal' do nothing +Object.freeze = Object; +Object.seal = Object; + import(".").then((m) => m.default()).catch((e) => { console.log(e?.stack ?? e.toString()); alert([