Skip to content

Commit 8475197

Browse files
committed
2 parents 4b2e005 + eb53844 commit 8475197

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/android/IBGPlugin.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ public boolean execute(final String action, JSONArray args, final CallbackContex
142142
* Used when calling back into JavaScript
143143
*/
144144
private void activate(final CallbackContext callbackContext, JSONArray args) {
145-
this.options = args.optJSONObject(0);
145+
this.options = args.optJSONObject(2);
146146
if (options != null) {
147147
// Attach extras
148148
applyOptions();

www/instabug.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Instabug.activate = function (token, event, options, success, error) {
4848
var validatedEvent = getInvocationEvents()[event];
4949

5050
if (validatedEvent) {
51-
exec(success, error, 'IBGPlugin', 'activate', [options]);
51+
exec(success, error, 'IBGPlugin', 'activate', [token, event, options]);
5252
} else {
5353
console.log('Could not activate Instabug - invocation event "' + event + '" is not valid.');
5454
}

0 commit comments

Comments
 (0)