Skip to content

Commit

Permalink
Update some messed up stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
lllcypherlll committed Nov 7, 2023
1 parent abaf8b2 commit d9904d1
Show file tree
Hide file tree
Showing 4 changed files with 436 additions and 245 deletions.
14 changes: 7 additions & 7 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const createWindow = () => {
},
webPreferences: {
preload: path.join(__dirname, 'preload.js'),
devTools: false,
devTools: true,
nodeIntegration: true,
},
})
Expand Down Expand Up @@ -354,12 +354,12 @@ const createWindow = () => {
}
})
// Replace compose page
mainWindow.webContents.on('dom-ready', () => {
const url = mainWindow.webContents.getURL()
if (url === bingUrl) {
mainWindow.webContents.send('replace-compose-page', isDarkMode)
}
})
// mainWindow.webContents.on('dom-ready', () => {
// const url = mainWindow.webContents.getURL()
// if (url === bingUrl) {
// mainWindow.webContents.send('replace-compose-page', isDarkMode)
// }
// })
}

app.whenReady().then(() => {
Expand Down

0 comments on commit d9904d1

Please sign in to comment.