Skip to content

Commit

Permalink
fix reload button
Browse files Browse the repository at this point in the history
  • Loading branch information
makamekm committed May 5, 2020
1 parent 0891242 commit 100c3c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,10 @@
<div class="initial-loader__row">
The application is loading...
</div>
<div class="initial-loader__subrow" onclick="window.location.reload()">
<div
class="initial-loader__subrow"
onclick="window.location = window.location.origin + '/index.html'"
>
FORCE RELOAD
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Loading/LoadingDimmer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useLocalStore, observer } from "mobx-react";

const Dimmer = ({ text }: { text?: string }) => {
const reload = React.useCallback(() => {
window.location.reload();
(window as any).location = window.location.origin + "/index.html";
}, []);
return (
<div className="initial-loader-wrap">
Expand Down

0 comments on commit 100c3c4

Please sign in to comment.