cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fil...@apache.org
Subject cordova-plugin-statusbar git commit: CB-12812: (browser) Fix statusbar plugin with browser platform
Date Wed, 07 Jun 2017 12:42:38 GMT
Repository: cordova-plugin-statusbar
Updated Branches:
  refs/heads/master 0a3dadfdb -> 92fff60cc


CB-12812: (browser) Fix statusbar plugin with browser platform


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/commit/92fff60c
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/tree/92fff60c
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/diff/92fff60c

Branch: refs/heads/master
Commit: 92fff60cc7e52f4be876ae559bde2b980edb2415
Parents: 0a3dadf
Author: imgx64 <imgx64@gmail.com>
Authored: Sun May 14 12:19:56 2017 +0300
Committer: imgx64 <imgx64@gmail.com>
Committed: Wed Jun 7 08:16:32 2017 +0300

----------------------------------------------------------------------
 src/browser/StatusBarProxy.js | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-statusbar/blob/92fff60c/src/browser/StatusBarProxy.js
----------------------------------------------------------------------
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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org


Mime
View raw message