@el3um4s/electron-window
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -31,7 +31,7 @@ "use strict"; | ||
createWindow(options) { | ||
const { url = "", iconPath = "icon.png", preload = path.join(__dirname, "preload.js"), themeSource = "system", } = options ? options : {}; | ||
const { url = "", iconPath = path.join(__dirname, "icon.png"), preload = path.join(__dirname, "preload.js"), themeSource = "system", } = options ? options : {}; | ||
this.preload = preload; | ||
const settings = Object.assign({}, this.settings); | ||
electron_1.app.name = appName; | ||
const window = new electron_1.BrowserWindow(Object.assign(Object.assign({}, settings), { icon: path.join(__dirname, iconPath), show: false, webPreferences: { | ||
const window = new electron_1.BrowserWindow(Object.assign(Object.assign({}, settings), { icon: iconPath, show: false, webPreferences: { | ||
preload, | ||
@@ -38,0 +38,0 @@ nodeIntegration: false, |
{ | ||
"name": "@el3um4s/electron-window", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Electron - create a window with optional autoupdater and browserview", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |