summaryrefslogtreecommitdiff
path: root/electron_js
diff options
context:
space:
mode:
authorPliable Pixels <pliablepixels@users.noreply.github.com>2018-10-14 14:59:36 -0400
committerGitHub <noreply@github.com>2018-10-14 14:59:36 -0400
commit863e507613e33cc66022ba3639f7e1a5b8eb7c96 (patch)
treeb256e275147ee495721bedeaaafb1a65f8aef98c /electron_js
parentf6be92a7c14d600fa1345a55de76bda706b84380 (diff)
parentffbacb34a6a654eb1124c627320bc75131636ff7 (diff)
Merge branch 'master' into webview
Diffstat (limited to 'electron_js')
-rw-r--r--electron_js/main.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/electron_js/main.js b/electron_js/main.js
index 86546de1..ecd5151a 100644
--- a/electron_js/main.js
+++ b/electron_js/main.js
@@ -56,7 +56,7 @@ function createAlternateWindow() {
y: 10,
width: 800,
height: 800,
- icon: path.join(__dirname, '/../icon.png'),
+ icon: path.join(__dirname, '/../resources/icon.png'),
webPreferences:{nodeIntegration:false}});
const startUrl = process.env.ELECTRON_START_URL || url.format({
@@ -64,7 +64,7 @@ function createAlternateWindow() {
protocol: 'file:',
slashes: true
});
-
+
newWin.loadURL(startUrl);
}
@@ -106,12 +106,12 @@ const mx = globalShortcut.register('CommandOrControl+Alt+F', () => {
y: mainWindowState.y,
width: mainWindowState.width,
height: mainWindowState.height,
- icon: path.join(__dirname, '/../icon.png'),
+ icon: path.join(__dirname, '/../resources/icon.png'),
webPreferences:{nodeIntegration:false}});
//
- console.log (__dirname+'/../icon.png');
+ console.log (path.join(__dirname, '/../resources/icon.png'));
+
-
win.webContents.session.webRequest.onHeadersReceived({}, (d, c) => {
@@ -151,7 +151,7 @@ const mx = globalShortcut.register('CommandOrControl+Alt+F', () => {
// const menu = Menu.buildFromTemplate(template)
// Menu.setApplicationMenu(menu)
-
+
const template = [
{