Skip to content

Commit

Permalink
rearrange if statements so there is always a completion handler
Browse files Browse the repository at this point in the history
  • Loading branch information
mipetriu committed Feb 26, 2025
1 parent 63010b9 commit 648603c
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -505,12 +505,11 @@ - (void) webView:(WKWebView *)webView
if ([cameraConsentValue boolValue] && type == WKMediaCaptureTypeCamera)
{
decisionHandler(WKPermissionDecisionGrant);
return;
}
}
else
{
decisionHandler(WKPermissionDecisionPrompt);
}

decisionHandler(WKPermissionDecisionPrompt);
}
#endif

Expand Down

0 comments on commit 648603c

Please sign in to comment.