refactor: ignore install extension when failed to install
This commit is contained in:
1 parent
ee5cc4c141
commit
d07d86e859
1 file changed
+15
-3
+15
-3
@@ -1,10 +1,22 @@
|
||||
// Warning: This file is only used in the development environment
|
||||
// and is removed at build time.
|
||||
// Do not edit the file unless necessary.
|
||||
import { installExtension, VUEJS_DEVTOOLS } from 'electron-extension-installer'
|
||||
import { installExtension } from 'electron-extension-installer'
|
||||
import { app } from 'electron'
|
||||
|
||||
installExtension(VUEJS_DEVTOOLS, {
|
||||
const vue3DevTools = {
|
||||
id: 'nhdogjmejiglipccpnnnanhbledajbpd',
|
||||
version: '7.7.0'
|
||||
}
|
||||
|
||||
try {
|
||||
app.on('ready', async () => {
|
||||
await installExtension(vue3DevTools, {
|
||||
loadExtensionOptions: {
|
||||
allowFileAccess: true
|
||||
}
|
||||
})
|
||||
})
|
||||
})
|
||||
} catch {
|
||||
// Do nothing
|
||||
}
|
||||
Reference in new issue
Block a user