Skip to content

Commit

Permalink
fix: Hurray finally fixed startup bug
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekCornerGH committed Apr 3, 2022
1 parent f76fdf6 commit a51fa99
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/util/update.ts
Original file line number Diff line number Diff line change
@@ -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<void> {
Expand Down

0 comments on commit a51fa99

Please sign in to comment.