Skip to content

Commit

Permalink
ログ追加
Browse files Browse the repository at this point in the history
  • Loading branch information
sonlichao committed Jun 27, 2024
1 parent f10b520 commit 7afdc60
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ - (void)webView:(WKWebView *)webView requestMediaCapturePermissionForOrigin:(non
{
WKPermissionDecision decision;

NSLog(@"_mediaPermissionGrantType origin.protocol host webView.URL.host %@ %@ %@ %@", _mediaPermissionGrantType, origin.protocol, origin.host, webView.URL.host);
if (_mediaPermissionGrantType == CDVWebViewPermissionGrantType_Prompt) {
decision = WKPermissionDecisionPrompt;
}
Expand All @@ -174,7 +175,6 @@ - (void)webView:(WKWebView *)webView requestMediaCapturePermissionForOrigin:(non
decision = WKPermissionDecisionGrant;
}
else {
NSLog(@"origin.protocol host webView.URL.host %@ %@ %@", origin.protocol, origin.host, webView.URL.host);
if ([origin.protocol isEqualToString:@"file"]) {
NSLog(@"Supressing media permission request for file origin");
decision = WKPermissionDecisionGrant;
Expand Down

0 comments on commit 7afdc60

Please sign in to comment.