Use != null to handle undefined
This commit is contained in:
parent
c108088110
commit
2bd8ef83d1
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ const messageBoxOptions = {
|
||||||
}
|
}
|
||||||
|
|
||||||
const parseArgs = function (window, options, callback, ...args) {
|
const parseArgs = function (window, options, callback, ...args) {
|
||||||
if (window !== null && window.constructor !== BrowserWindow) {
|
if (window != null && window.constructor !== BrowserWindow) {
|
||||||
// Shift.
|
// Shift.
|
||||||
[callback, options, window] = [options, window, null]
|
[callback, options, window] = [options, window, null]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue