Skip to content

Commit

Permalink
Merge pull request #1077 from ParamBirje/refresh-view-feature
Browse files Browse the repository at this point in the history
[Feature] Refresh Feature for a single view
  • Loading branch information
manojVivek authored Sep 15, 2023
2 parents 5944985 + 8ca5de3 commit 468ade9
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ const Toolbar = ({
useState<boolean>(false);
const [rotated, setRotated] = useState<boolean>(false);

const refreshView = () => {
if (webview) {
webview.reload();
}
};

const toggleEventMirroring = async () => {
if (webview == null) {
return;
Expand Down Expand Up @@ -125,6 +131,9 @@ const Toolbar = ({
return (
<div className="flex items-center justify-between gap-1">
<div className="my-1 flex items-center gap-1">
<Button onClick={refreshView} title="Refresh This View">
<Icon icon="ic:round-refresh" />
</Button>
<Button
onClick={quickScreenshot}
isLoading={screenshotLoading}
Expand Down

0 comments on commit 468ade9

Please sign in to comment.