💄 Simplify conditional check for BrowserWindow

This commit is contained in:
Steve Kinney 2016-05-07 09:13:40 -06:00
parent f3e633eb2c
commit 91220f2a98

View file

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