mirror of
https://github.com/apache/cordova-plugin-statusbar.git
synced 2026-04-09 00:00:02 +08:00
ios: Use a persistent callbackId instead of calling sendJs
This commit is contained in:
+7
-1
@@ -97,7 +97,13 @@ var StatusBar = {
|
||||
|
||||
// prime it
|
||||
exec(function (res) {
|
||||
StatusBar.isVisible = res;
|
||||
if (typeof res == 'object') {
|
||||
if (res.type == 'tap') {
|
||||
cordova.fireWindowEvent('statusTap');
|
||||
}
|
||||
} else {
|
||||
StatusBar.isVisible = res;
|
||||
}
|
||||
}, null, "StatusBar", "_ready", []);
|
||||
|
||||
module.exports = StatusBar;
|
||||
|
||||
Reference in New Issue
Block a user