electron-about-window
Advanced tools
Comparing version 1.13.3 to 1.13.4
{ | ||
"name": "electron-about-window", | ||
"version": "1.13.3", | ||
"version": "1.13.4", | ||
"description": "'About App' window for Electron application", | ||
@@ -13,3 +13,3 @@ "main": "src/index.js", | ||
"check-formatting": "prettier --check '**/*.ts'", | ||
"lint": "npm run tslint && npm run stylelint check-formatting", | ||
"lint": "npm run tslint && npm run stylelint && npm run check-formatting", | ||
"prettier": "prettier --write '**/*.ts'", | ||
@@ -16,0 +16,0 @@ "example": "NODE_ENV=production electron ./example", |
@@ -6,5 +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; | ||
const app = electron_1.app || (electron_1.remote === null || electron_1.remote === void 0 ? void 0 : electron_1.remote.app); | ||
const BrowserWindow = electron_1.BrowserWindow || (electron_1.remote === null || electron_1.remote === void 0 ? void 0 : electron_1.remote.BrowserWindow); | ||
function loadPackageJson(pkg_path) { | ||
@@ -93,2 +92,3 @@ try { | ||
function openAboutWindow(info_or_img_path) { | ||
let window = null; | ||
let info = normalizeParam(info_or_img_path); | ||
@@ -95,0 +95,0 @@ if (window !== null) { |
Sorry, the diff of this file is not supported yet
28250