From 8012ae709bb749eaad434c05cd7e2aeda8f3a425 Mon Sep 17 00:00:00 2001 From: Edna Morales Date: Mon, 6 Oct 2014 16:17:15 -0400 Subject: [PATCH] CB-7720 check if event is null since OK string from success callback was removed github: close #68 --- www/inappbrowser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/inappbrowser.js b/www/inappbrowser.js index 3535b6f..4211563 100644 --- a/www/inappbrowser.js +++ b/www/inappbrowser.js @@ -35,7 +35,7 @@ function InAppBrowser() { InAppBrowser.prototype = { _eventHandler: function (event) { - if (event.type in this.channels) { + if (event && (event.type in this.channels)) { this.channels[event.type].fire(event); } },