mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Use != null to handle undefined
This commit is contained in:
@@ -19,7 +19,7 @@ const messageBoxOptions = {
|
||||
}
|
||||
|
||||
const parseArgs = function (window, options, callback, ...args) {
|
||||
if (window !== null && window.constructor !== BrowserWindow) {
|
||||
if (window != null && window.constructor !== BrowserWindow) {
|
||||
// Shift.
|
||||
[callback, options, window] = [options, window, null]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user