From 91220f2a98ec6b2a441b18786262372c9fba91bd Mon Sep 17 00:00:00 2001 From: Steve Kinney Date: Sat, 7 May 2016 09:13:40 -0600 Subject: [PATCH] :lipstick: Simplify conditional check for BrowserWindow --- lib/browser/api/dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/browser/api/dialog.js b/lib/browser/api/dialog.js index 9b43b7b936d..a41d1fa46e0 100644 --- a/lib/browser/api/dialog.js +++ b/lib/browser/api/dialog.js @@ -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] }