Skip to content

Commit

Permalink
Update SystemView.js
Browse files Browse the repository at this point in the history
  • Loading branch information
yuzawa-san committed Jul 4, 2022
1 parent 7359836 commit e0071ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/SystemView.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,12 @@ class SystemView extends React.Component {
alert(error);
});
}

handleFocus = () => {
this.lastReloaded = 0;
this.reload();
}

reload = () => {
const now = Date.now();
if ((now - this.lastReloaded) < RELOAD_INTERVAL_MS) {
Expand Down

0 comments on commit e0071ee

Please sign in to comment.