From c72472788624cc788facc758b6ca5f30016b1a51 Mon Sep 17 00:00:00 2001 From: mio <10892119+biuuu@users.noreply.github.com> Date: Thu, 4 May 2023 12:41:44 +0800 Subject: [PATCH] fix: add background color in the browser window --- package.json | 2 +- src/main/utils.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 43611df..d1ef9e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "star-rail-warp-export", - "version": "0.0.9", + "version": "0.0.10", "main": "./dist/electron/main/main.js", "author": "biuuu ", "license": "MIT", diff --git a/src/main/utils.js b/src/main/utils.js index 2041a96..913c64c 100644 --- a/src/main/utils.js +++ b/src/main/utils.js @@ -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