Skip to content

Commit

Permalink
added missing goBack/goForward methods in WebViewPlugin class.
Browse files Browse the repository at this point in the history
  • Loading branch information
KojiNakamaru committed Jul 14, 2016
1 parent af02117 commit 9123019
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions plugins/iOS/WebView.mm
Expand Up @@ -227,6 +227,20 @@ - (void)evaluateJS:(const char *)js
[webView evaluateJavaScript:jsStr completionHandler:^(NSString *result, NSError *error) {}];
}

- (void)goBack
{
if (webView == nil)
return;
[webView goBack];
}

- (void)goForward
{
if (webView == nil)
return;
[webView goForward];
}

@end

extern "C" {
Expand Down

0 comments on commit 9123019

Please sign in to comment.