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

This commit is contained in:
imgx64 2017-05-14 12:19:56 +03:00
parent 0a3dadfdb0
commit 92fff60cc7

View File

@ -22,7 +22,9 @@ function notSupported(win,fail) {
// //
console.log('StatusBar is not supported'); console.log('StatusBar is not supported');
setTimeout(function(){ setTimeout(function(){
win(); if (win) {
win();
}
// note that while it is not explicitly supported, it does not fail // 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 // 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 // and if we fail, then their app might as well. -jm