File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ - (void) setViewHierarchyEnabled:(CDVInvokedUrlCommand*)command
498
498
BOOL isEnabled = [command argumentAtIndex: 0 ];
499
499
500
500
if (isEnabled) {
501
- [Instabug setViewHierarchyEnabled: isEnabled ];
501
+ [Instabug setViewHierarchyEnabled: [[command argumentAtIndex: 0 ] boolValue ] ];
502
502
result = [CDVPluginResult resultWithStatus: CDVCommandStatus_OK];
503
503
} else {
504
504
result = [CDVPluginResult resultWithStatus: CDVCommandStatus_ERROR
@@ -521,7 +521,7 @@ - (void) setAutoScreenRecordingEnabled:(CDVInvokedUrlCommand*)command
521
521
BOOL isEnabled = [command argumentAtIndex: 0 ];
522
522
523
523
if (isEnabled) {
524
- [Instabug setAutoScreenRecordingEnabled: isEnabled ];
524
+ [Instabug setAutoScreenRecordingEnabled: [[command argumentAtIndex: 0 ] boolValue ] ];
525
525
result = [CDVPluginResult resultWithStatus: CDVCommandStatus_OK];
526
526
} else {
527
527
result = [CDVPluginResult resultWithStatus: CDVCommandStatus_ERROR
@@ -695,7 +695,7 @@ - (void) setAutoShowingSurveysEnabled:(CDVInvokedUrlCommand*)command
695
695
BOOL autoShowingSurveysEnabled = [command argumentAtIndex: 0 ];
696
696
697
697
if (autoShowingSurveysEnabled) {
698
- [Instabug setAutoShowingSurveysEnabled: autoShowingSurveysEnabled ];
698
+ [Instabug setAutoShowingSurveysEnabled: [[command argumentAtIndex: 0 ] boolValue ] ];
699
699
result = [CDVPluginResult resultWithStatus: CDVCommandStatus_OK];
700
700
} else {
701
701
result = [CDVPluginResult resultWithStatus: CDVCommandStatus_ERROR
You can’t perform that action at this time.
0 commit comments