From a51fa9991f81dc2b36cd40cd4871fea62db65996 Mon Sep 17 00:00:00 2001 From: GeekCornerGH <45696571+GeekCornerGH@users.noreply.github.com> Date: Sun, 3 Apr 2022 12:07:59 +0200 Subject: [PATCH] fix: Hurray finally fixed startup bug --- src/util/update.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/util/update.ts b/src/util/update.ts index e37f88b..dc62717 100644 --- a/src/util/update.ts +++ b/src/util/update.ts @@ -1,9 +1,4 @@ -const _importDynamic = new Function('modulePath', 'return import(modulePath)') - -async function fetch(...args) { - const {default: fetch} = await _importDynamic('node-fetch') - return fetch(...args) -} +import fetch from "node-fetch"; import { BrowserWindow, dialog, shell } from "electron"; import { customApp } from "../types"; export async function update(app: customApp, mainWindow: BrowserWindow): Promise {