Skip to content

Commit e877d4e

Browse files
committed
removed info object
1 parent c44e194 commit e877d4e

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

index.js

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
const { app, BrowserWindow, Menu, ipcMain, dialog } = require('electron')
22
const path = require('path')
33
const fs = require('fs')
4-
const { info } = require('console')
54
const join = require('path').join
65
const openAboutWindow = require('about-window').default
76

@@ -221,21 +220,6 @@ const template = [
221220
]
222221
}
223222
]
224-
function normalizeParam(info_or_img_path) {
225-
if (!info_or_img_path) {
226-
throw new Error('First parameter of openAboutWindow() must not be empty. Please see the document: https://github.com/rhysd/electron-about-window/blob/master/README.md')
227-
}
228-
if (typeof info_or_img_path === 'string') {
229-
return { icon_path: info_or_img_path }
230-
}
231-
else {
232-
if (!info.icon_path) {
233-
throw new Error("First parameter of openAboutWindow() must have key 'icon_path'. Please see the document: https://github.com/rhysd/electron-about-window/blob/master/README.md")
234-
}
235-
return Object.assign({}, info)
236-
}
237-
}
238-
239223

240224
const menu = Menu.buildFromTemplate(template)
241225

0 commit comments

Comments
 (0)