Skip to content

Commit

Permalink
fix build for building a full release
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Verhoelen committed Jun 25, 2021
1 parent 3d939b9 commit e30b268
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/main/AppWindows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as url from 'url'
import * as path from 'path'

export const createMainWindow = (): BrowserWindow => {
let mainWindow = new BrowserWindow({
const mainWindow = new BrowserWindow({
width: 1000,
height: 600,
center: true,
Expand Down
3 changes: 2 additions & 1 deletion src/main/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ import { getSystemSettings, getUserSettings, installExtensions } from './AppUtil
const isDevMode = process.env.NODE_ENV !== 'production'
fixPath()

require('@electron/remote/main').initialize()
import * as remoteMain from '@electron/remote/main'
remoteMain.initialize()

let mainWindow: BrowserWindow | null
let searchWindow: BrowserWindow | null
Expand Down

0 comments on commit e30b268

Please sign in to comment.