Skip to content

Commit

Permalink
Add standard window preload script
Browse files Browse the repository at this point in the history
This makes the menubar window work just like other windows
  • Loading branch information
simonhamp committed Nov 14, 2024
1 parent d95885c commit 1644dd4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions resources/js/electron-plugin/src/server/api/menuBar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ router.post("/create", (req, res) => {
backgroundColor,
transparent: transparency,
webPreferences: {
preload: join(__dirname, '../../electron-plugin/dist/preload/index.js'),
nodeIntegration: true,
sandbox: false,
contextIsolation: false,
Expand Down

0 comments on commit 1644dd4

Please sign in to comment.