From 0c6997b160d88b7c4105c3574b1758944ebd4a22 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 27 Jun 2013 19:18:31 +0800 Subject: [PATCH] Fix passing null as window in dialog.showMessageBox. --- browser/api/lib/dialog.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/browser/api/lib/dialog.coffee b/browser/api/lib/dialog.coffee index fa606e1ddbdd..59568bcf5b4e 100644 --- a/browser/api/lib/dialog.coffee +++ b/browser/api/lib/dialog.coffee @@ -31,7 +31,7 @@ module.exports = binding.showSaveDialog window, options.title, options.defaultPath showMessageBox: (window, options) -> - if window?.constructor isnt BrowserWindow + if window? and window.constructor isnt BrowserWindow options = window window = null