Skip to content

Commit

Permalink
temp: add check before creating managers
Browse files Browse the repository at this point in the history
  • Loading branch information
nicole-obrien committed Sep 1, 2023
1 parent 90e89f3 commit 53d5226
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions packages/desktop/lib/electron/processes/main.process.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,19 +200,25 @@ function createMainWindow(): BrowserWindow {

mainWindowState.track(windows.main)

let autoUpdateManager
if (!app.isPackaged) {
// Enable dev tools only in developer mode
windows.main.webContents.openDevTools()

void windows.main.loadURL('http://localhost:8080')
} else {
new AutoUpdateManager()
if (!autoUpdateManager) {
autoUpdateManager = new AutoUpdateManager()
}

// load the index.html of the app.
void windows.main.loadFile(paths.html)
}

new NftDownloadManager()
let nftDownloadManager
if (!nftDownloadManager) {
new NftDownloadManager()
}

/**
* Right click context menu for inputs
Expand Down

0 comments on commit 53d5226

Please sign in to comment.