Use != null to handle undefined

This commit is contained in:
Kevin Sawicki 2016-12-12 16:25:56 -08:00
parent c108088110
commit 2bd8ef83d1

View file

@ -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]
} }