pack: add async await for install devtool extension
This commit is contained in:
1 parent
8204250f74
commit
93e488e5f5
1 file changed
+2
-2
+2
-2
@@ -7,9 +7,9 @@ import { installExtension, VUEJS_DEVTOOLS } from 'electron-extension-installer'
|
||||
let mainWindow
|
||||
let errorWindow
|
||||
|
||||
app.on('ready', () => {
|
||||
app.on('ready', async () => {
|
||||
if (Constants.IS_DEV_ENV) {
|
||||
installExtension(VUEJS_DEVTOOLS, {
|
||||
await installExtension(VUEJS_DEVTOOLS, {
|
||||
loadExtensionOptions: {
|
||||
allowFileAccess: true
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user