Skip to content

Commit

Permalink
[RIQ-6320] added back "}" method, which was removed in a merge, added…
Browse files Browse the repository at this point in the history
… more methods that were missing
  • Loading branch information
greg-aofl committed Feb 9, 2022
1 parent 14cedda commit ae71acd
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion ios/Classes/FlutterWebviewPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,13 @@ - (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
} else if ([@"reload" isEqualToString:call.method]) {
[self reload];
result(nil);
} else {
} else if ([@"canGoBack" isEqualToString:call.method]) {
[self onCanGoBack:call result:result];
} else if ([@"canGoForward" isEqualToString:call.method]) {
[self onCanGoForward:call result:result];
} else if ([@"cleanCache" isEqualToString:call.method]) {
[self cleanCache:result];
} else {
result(FlutterMethodNotImplemented);
}
}
Expand Down Expand Up @@ -123,6 +129,7 @@ - (void)initWebview:(FlutterMethodCall*)call withResult:(FlutterResult)result {

if(cookies != (id)[NSNull null]) {
[self setCookies:call.arguments[@"url"] :cookies];
}

if (userAgent != (id)[NSNull null]) {
[[NSUserDefaults standardUserDefaults] registerDefaults:@{@"UserAgent": userAgent}];
Expand Down

0 comments on commit ae71acd

Please sign in to comment.