From 8155baa07d39e8947e02d7feb4c85dc9fd86125c Mon Sep 17 00:00:00 2001 From: Cutls Date: Thu, 4 Apr 2019 01:09:57 +0900 Subject: [PATCH] fix about window --- app/main.js | 2 +- app/main/language.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/main.js b/app/main.js index 7ebc5197..bcaed309 100644 --- a/app/main.js +++ b/app/main.js @@ -131,7 +131,7 @@ function createWindow() { var platform=process.platform; var bit=process.arch; if(platform=="darwin"){ - Menu.setApplicationMenu(Menu.buildFromTemplate(language.template(lang,mainWindow,false))); + Menu.setApplicationMenu(Menu.buildFromTemplate(language.template(lang,mainWindow,false,dir))); } //CSS css.css(mainWindow); diff --git a/app/main/language.js b/app/main/language.js index 92d547d4..94c3279f 100644 --- a/app/main/language.js +++ b/app/main/language.js @@ -1,5 +1,5 @@ // Create the Application's main menu -function templete(lang,mainWindow,packaged){ +function templete(lang,mainWindow,packaged,dir){ const electron = require("electron"); const app = electron.app; const BrowserWindow = electron.BrowserWindow; @@ -74,7 +74,7 @@ function templete(lang,mainWindow,packaged){ "transparent": false, // ウィンドウの背景を透過 "frame": false, // 枠の無いウィンドウ "resizable": false }); - window.loadURL('file://' + __dirname + '/about.html?ver='+ver); + window.loadURL(dir + '/about.html?ver='+ver); } }, { type: "separator" }, { label: dict.quit[lang], accelerator: "Command+Q", click: function() { app.quit(); }}