|
@@ -1,5 +1,6 @@
|
|
|
const config = require('../config');
|
|
|
const { BrowserWindow } = require('electron');
|
|
|
+const path = require('path');
|
|
|
const window = {};
|
|
|
|
|
|
window.new = function (file, width, height) {
|
|
@@ -10,6 +11,7 @@ window.new = function (file, width, height) {
|
|
|
const win = new BrowserWindow ({
|
|
|
width: width,
|
|
|
height: height,
|
|
|
+ icon: path.join(__dirname, '../electronotes.png'),
|
|
|
webPreferences: {
|
|
|
nodeIntegration: true
|
|
|
}
|
|
@@ -26,6 +28,7 @@ window.simple = function (file, width, height) {
|
|
|
const win = new BrowserWindow ({
|
|
|
width: width,
|
|
|
height: height,
|
|
|
+ icon: path.join(__dirname, '../electronotes.png'),
|
|
|
webPreferences: {
|
|
|
nodeIntegration: false
|
|
|
}
|