|
@@ -5,6 +5,7 @@ function createWindow() {
|
|
|
const mainWindow = new BrowserWindow({
|
|
const mainWindow = new BrowserWindow({
|
|
|
width: 1600,
|
|
width: 1600,
|
|
|
height: 900,
|
|
height: 900,
|
|
|
|
|
+ icon: path.join(__dirname, 'favicon.ico'), // 设置窗口图标
|
|
|
webPreferences: {
|
|
webPreferences: {
|
|
|
nodeIntegration: false,
|
|
nodeIntegration: false,
|
|
|
contextIsolation: true
|
|
contextIsolation: true
|
|
@@ -19,7 +20,7 @@ function createWindow() {
|
|
|
label: 'View',
|
|
label: 'View',
|
|
|
submenu: [
|
|
submenu: [
|
|
|
{
|
|
{
|
|
|
- label: 'Refresh',
|
|
|
|
|
|
|
+ label: 'Reload',
|
|
|
accelerator: 'CmdOrCtrl+R',
|
|
accelerator: 'CmdOrCtrl+R',
|
|
|
click: () => {
|
|
click: () => {
|
|
|
mainWindow.reload();
|
|
mainWindow.reload();
|