From 92fff60cc7e52f4be876ae559bde2b980edb2415 Mon Sep 17 00:00:00 2001 From: imgx64 Date: Sun, 14 May 2017 12:19:56 +0300 Subject: [PATCH] CB-12812: (browser) Fix statusbar plugin with browser platform --- src/browser/StatusBarProxy.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/browser/StatusBarProxy.js b/src/browser/StatusBarProxy.js index 3e90c6c..3290d58 100644 --- a/src/browser/StatusBarProxy.js +++ b/src/browser/StatusBarProxy.js @@ -22,7 +22,9 @@ function notSupported(win,fail) { // console.log('StatusBar is not supported'); setTimeout(function(){ - win(); + if (win) { + win(); + } // note that while it is not explicitly supported, it does not fail // this is really just here to allow developers to test their code in the browser // and if we fail, then their app might as well. -jm