fix: add background color in the browser window

This commit is contained in:
mio
2023-05-04 12:41:44 +08:00
parent d324aee160
commit c724727886
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,6 @@ const crypto = require('crypto')
const unhandled = require('electron-unhandled')
const windowStateKeeper = require('electron-window-state')
const debounce = require('lodash/debounce')
const Registry = require('winreg')
const isDev = !app.isPackaged
@ -26,6 +25,7 @@ const initWindow = () => {
y: mainWindowState.y,
width: mainWindowState.width,
height: mainWindowState.height,
backgroundColor: '#fff',
webPreferences: {
contextIsolation:false,
nodeIntegration: true