diff options
Diffstat (limited to 'src/VencordNative.ts')
-rw-r--r-- | src/VencordNative.ts | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/VencordNative.ts b/src/VencordNative.ts index 33bb869..494e9ff 100644 --- a/src/VencordNative.ts +++ b/src/VencordNative.ts @@ -27,14 +27,5 @@ export default { assertEventAllowed(event); return ipcRenderer.invoke(event, ...args); } - }, - require(mod: string) { - const settings = ipcRenderer.sendSync(IPC_EVENTS.GET_SETTINGS); - try { - if (!JSON.parse(settings).unsafeRequire) throw "no"; - } catch { - throw new Error("Unsafe require is not allowed. Enable it in settings and try again."); - } - return require(mod); } }; |