Merge pull request #28 from bmourat/fix/android-exec-error
Fixes issue #27
This commit is contained in:
Коммит
99da9e8966
|
@ -7,7 +7,7 @@ module.exports = {
|
|||
},
|
||||
|
||||
isEnabled: function(success, error) {
|
||||
exec(success, error, "AppCenterAnalytics", "isEnabled");
|
||||
exec(success, error, "AppCenterAnalytics", "isEnabled", []);
|
||||
},
|
||||
|
||||
setEnabled: function(enabled, success, error) {
|
||||
|
|
|
@ -9,19 +9,19 @@ var channels = {
|
|||
|
||||
var Crashes = {
|
||||
generateTestCrash: function (error) {
|
||||
exec(null, error, "AppCenterCrashes", "generateTestCrash");
|
||||
exec(null, error, "AppCenterCrashes", "generateTestCrash", []);
|
||||
},
|
||||
|
||||
hasCrashedInLastSession: function (success, error) {
|
||||
exec(success, error, "AppCenterCrashes", "hasCrashedInLastSession");
|
||||
exec(success, error, "AppCenterCrashes", "hasCrashedInLastSession", []);
|
||||
},
|
||||
|
||||
lastSessionCrashReport: function (success, error) {
|
||||
exec(success, error, "AppCenterCrashes", "lastSessionCrashReport");
|
||||
exec(success, error, "AppCenterCrashes", "lastSessionCrashReport", []);
|
||||
},
|
||||
|
||||
isEnabled: function (success, error) {
|
||||
exec(success, error, "AppCenterCrashes", "isEnabled");
|
||||
exec(success, error, "AppCenterCrashes", "isEnabled", []);
|
||||
},
|
||||
|
||||
setEnabled: function (shouldEnable, success, error) {
|
||||
|
@ -81,7 +81,7 @@ var Crashes = {
|
|||
});
|
||||
}
|
||||
|
||||
exec(processReports, failIfNotEnabled, "AppCenterCrashes", "getCrashReports");
|
||||
exec(processReports, failIfNotEnabled, "AppCenterCrashes", "getCrashReports", []);
|
||||
},
|
||||
|
||||
addEventListener: function (eventname, f) {
|
||||
|
|
|
@ -7,7 +7,7 @@ var channels = {
|
|||
|
||||
var Push = {
|
||||
isEnabled: function (success, error) {
|
||||
exec(success, error, "AppCenterPush", "isEnabled");
|
||||
exec(success, error, "AppCenterPush", "isEnabled", []);
|
||||
},
|
||||
|
||||
setEnabled: function (shouldEnable, success, error) {
|
||||
|
@ -17,7 +17,7 @@ var Push = {
|
|||
addEventListener: function (eventname, f) {
|
||||
if (eventname in channels) {
|
||||
channels[eventname].subscribe(f);
|
||||
exec(null, null, "AppCenterPush", "sendAndClearInitialNotification");
|
||||
exec(null, null, "AppCenterPush", "sendAndClearInitialNotification", []);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче