Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
format
  • Loading branch information
Chris Yang committed Apr 7, 2021
commit 0b5ba7c117083f822d339149210b2688efc197f1
6 changes: 4 additions & 2 deletions packages/webview_flutter/ios/Classes/FlutterWebView.m
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,10 @@ - (NSString*)applySettings:(NSDictionary<NSString*, id>*)settings {
[unknownKeys componentsJoinedByString:@", "]];
}

- (void)applyConfigurationSetting:(NSDictionary<NSString*, id>*)settings inConfiguration:(WKWebViewConfiguration*)configuration {
NSAssert(configuration != _webView.configuration, @"configuration needs to be updated before webView.configuration.");
- (void)applyConfigurationSetting:(NSDictionary<NSString*, id>*)settings
inConfiguration:(WKWebViewConfiguration*)configuration {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: s/in/to/

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also did s/Setting/Settings

NSAssert(configuration != _webView.configuration,
@"configuration needs to be updated before webView.configuration.");
for (NSString* key in settings) {
if ([key isEqualToString:@"allowsInlineMediaPlayback"]) {
NSNumber* allowsInlineMediaPlayback = settings[key];
Expand Down