Skip to content

Commit

Permalink
feat(android): ability to reload the webview (#5184)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlpoole authored Nov 1, 2021
1 parent 664149a commit c495bed
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions android/capacitor/src/main/java/com/getcapacitor/Bridge.java
Original file line number Diff line number Diff line change
Expand Up @@ -1148,6 +1148,13 @@ public void setServerAssetPath(String path) {
webView.post(() -> webView.loadUrl(appUrl));
}

/**
* Reload the WebView
*/
public void reload() {
webView.post(() -> webView.loadUrl(appUrl));
}

public String getLocalUrl() {
return localUrl;
}
Expand Down

0 comments on commit c495bed

Please sign in to comment.