electron-about-window
Advanced tools
Comparing version 1.13.2 to 1.13.3
{ | ||
"name": "electron-about-window", | ||
"version": "1.13.2", | ||
"version": "1.13.3", | ||
"description": "'About App' window for Electron application", | ||
@@ -12,3 +12,5 @@ "main": "src/index.js", | ||
"stylelint": "stylelint styles/*.css", | ||
"lint": "npm run tslint && npm run stylelint", | ||
"check-formatting": "prettier --check '**/*.ts'", | ||
"lint": "npm run tslint && npm run stylelint check-formatting", | ||
"prettier": "prettier --write '**/*.ts'", | ||
"example": "NODE_ENV=production electron ./example", | ||
@@ -36,10 +38,11 @@ "debug": "electron ./example", | ||
"devDependencies": { | ||
"@types/node": "^12.6.6", | ||
"electron": "^7.1.0", | ||
"stylelint": "^10.1.0", | ||
"stylelint-config-standard": "^18.3.0", | ||
"tslint": "^5.18.0", | ||
"typescript": "^3.5.3" | ||
"@types/node": "^12.x", | ||
"electron": "^9.0.2", | ||
"prettier": "^2.0.5", | ||
"stylelint": "^13.5.0", | ||
"stylelint-config-standard": "^20.0.0", | ||
"tslint": "^6.1.2", | ||
"typescript": "^3.9.3" | ||
}, | ||
"dependencies": {} | ||
} |
@@ -6,2 +6,4 @@ "use strict"; | ||
const path = require("path"); | ||
const app = electron_1.app || electron_1.remote.app; | ||
const BrowserWindow = electron_1.BrowserWindow || electron_1.remote.BrowserWindow; | ||
let window = null; | ||
@@ -26,3 +28,3 @@ function loadPackageJson(pkg_path) { | ||
} | ||
const app_name = electron_1.app.name || electron_1.app.getName(); | ||
const app_name = app.name || app.getName(); | ||
for (const mod_path of module.paths) { | ||
@@ -111,5 +113,6 @@ if (!path.isAbsolute(mod_path)) { | ||
nodeIntegration: true, | ||
enableRemoteModule: true, | ||
}, | ||
}, info.win_options || {}); | ||
window = new (electron_1.BrowserWindow || electron_1.remote.BrowserWindow)(options); | ||
window = new BrowserWindow(options); | ||
window.once('closed', () => { | ||
@@ -116,0 +119,0 @@ window = null; |
Sorry, the diff of this file is not supported yet
28035
13
377
7