refactor: ignore install extension when failed to install

This commit is contained in:
leejooy96 committed 2025-03-20 10:44:30 +09:00
1 parent ee5cc4c141
commit d07d86e859
1 file changed
+18 -6
+18 -6
View File
@@ -1,10 +1,22 @@
// Warning: This file is only used in the development environment // Warning: This file is only used in the development environment
// and is removed at build time. // and is removed at build time.
// Do not edit the file unless necessary. // 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 = {
loadExtensionOptions: { id: 'nhdogjmejiglipccpnnnanhbledajbpd',
allowFileAccess: true version: '7.7.0'
} }
})
try {
app.on('ready', async () => {
await installExtension(vue3DevTools, {
loadExtensionOptions: {
allowFileAccess: true
}
})
})
} catch {
// Do nothing
}