diff --git a/js/utils/platform.js b/js/utils/platform.js index 17a227cae2..0bf477c897 100644 --- a/js/utils/platform.js +++ b/js/utils/platform.js @@ -108,7 +108,9 @@ }, exitApp: function() { - navigator.app && navigator.app.exitApp && navigator.app.exitApp(); + this.ready(function(){ + navigator.app && navigator.app.exitApp && navigator.app.exitApp(); + }); }, showStatusBar: function(val) {