@@ -20,7 +20,6 @@ import ORMConfig from './database/database.config'
20
20
import version from '@/version'
21
21
import { initialize } from '@electron/remote/main'
22
22
import { initMCPHandlers , cleanupMCPConnections } from './main/ai/mcp/MCPManager'
23
- // import installExtension, { VUEJS_DEVTOOLS } from 'electron-devtools-installer'
24
23
25
24
declare const __static : string
26
25
@@ -255,17 +254,16 @@ async function createWindow() {
255
254
// initialization and is ready to create browser windows.
256
255
// Some APIs can only be used after this event occurs.
257
256
app . on ( 'ready' , async ( ) => {
258
- // if (isDevelopment && !process.env.IS_TEST) {
259
- // // Install Vue Devtools - modified to handle errors better
260
- // try {
261
- // await installExtension(VUEJS_DEVTOOLS, {
262
- // loadExtensionOptions: { allowFileAccess: true },
263
- // })
264
- // } catch (e) {
265
- // console.error('Vue Devtools failed to install:', e)
266
- // // Continue without Vue Devtools if installation fails
267
- // }
268
- // }
257
+ // Install Vue Devtools on development mode
258
+ if ( isDevelopment && ! process . env . IS_TEST ) {
259
+ try {
260
+ const installExtension = require ( 'electron-devtools-installer' ) . default
261
+ await installExtension ( 'iaajmlceplecbljialhhkmedjlpdblhp' )
262
+ console . log ( 'Vue Devtools installed successfully' )
263
+ } catch ( e ) {
264
+ console . error ( 'Vue Devtools failed to install:' , e )
265
+ }
266
+ }
269
267
createWindow ( )
270
268
} )
271
269
0 commit comments