Skip to content

Commit

Permalink
fix: electron dev
Browse files Browse the repository at this point in the history
  • Loading branch information
DIYgod committed Feb 9, 2025
1 parent 8409ab1 commit bb0db13
Show file tree
Hide file tree
Showing 3 changed files with 369 additions and 334 deletions.
2 changes: 2 additions & 0 deletions apps/main/src/window.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ export function createWindow(
sandbox: false,
webviewTag: true,
webSecurity: !isDev,
nodeIntegration: true,
contextIsolation: false,
},
}

Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"@vitejs/plugin-react": "^4.3.4",
"async-es": "^3.2.6",
"autoprefixer": "10.4.20",
"bufferutil": "^4.0.9",
"cross-env": "7.0.3",
"cssnano": "7.0.6",
"dotenv": "16.4.7",
Expand Down Expand Up @@ -122,6 +123,7 @@
"turbo": "2.4.0",
"typescript": "5.7.3",
"unplugin-ast": "^0.13.1",
"utf-8-validate": "^6.0.5",
"vite": "6.0.11",
"vite-bundle-analyzer": "0.16.1",
"vite-plugin-mkcert": "1.17.6",
Expand Down
Loading

0 comments on commit bb0db13

Please sign in to comment.