main: use named import for util class
This commit is contained in:
1 parent
b8f0700e0d
commit
9daefeab24
2 files changed
+4
-2
No files matched your search
+2
-2
@@ -1,13 +1,13 @@
|
|||||||
import { app, WebContents, RenderProcessGoneDetails } from 'electron'
|
import { app, WebContents, RenderProcessGoneDetails } from 'electron'
|
||||||
import Constants from './utils/Constants'
|
import Constants from './utils/Constants'
|
||||||
import { createErrorWindow, createMainWindow } from './MainRunner'
|
import { createErrorWindow, createMainWindow } from './MainRunner'
|
||||||
import Menus from './utils/Menus'
|
import { macOSDisableDefaultMenuItem } from './utils/Menus'
|
||||||
|
|
||||||
let mainWindow
|
let mainWindow
|
||||||
let errorWindow
|
let errorWindow
|
||||||
|
|
||||||
app.on('ready', () => {
|
app.on('ready', () => {
|
||||||
Menus.macOSDisableDefaultMenuItem()
|
macOSDisableDefaultMenuItem()
|
||||||
|
|
||||||
mainWindow = createMainWindow(mainWindow)
|
mainWindow = createMainWindow(mainWindow)
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -9,3 +9,5 @@ export default class Menus {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const { macOSDisableDefaultMenuItem } = Menus
|
||||||
Reference in new issue
Block a user