💄 Simplify conditional check for BrowserWindow
This commit is contained in:
parent
f3e633eb2c
commit
91220f2a98
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ var messageBoxOptions = {
|
|||
}
|
||||
|
||||
var parseArgs = function (window, options, callback, ...args) {
|
||||
if (!(window === null || (window != null ? window.constructor : void 0) === BrowserWindow)) {
|
||||
if (window !== null && window.constructor !== BrowserWindow) {
|
||||
// Shift.
|
||||
[callback, options, window] = [options, window, null]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue