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

@ -1,6 +1,6 @@
{ {
"name": "star-rail-warp-export", "name": "star-rail-warp-export",
"version": "0.0.9", "version": "0.0.10",
"main": "./dist/electron/main/main.js", "main": "./dist/electron/main/main.js",
"author": "biuuu <https://github.com/biuuu>", "author": "biuuu <https://github.com/biuuu>",
"license": "MIT", "license": "MIT",

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