diff --git a/script.sh b/script.sh new file mode 100644 index 00000000..e69de29b diff --git a/src/App.js b/src/App.js index 6c69df45..04075820 100644 --- a/src/App.js +++ b/src/App.js @@ -17,6 +17,12 @@ const App = () => { const location = useLocation(); // changing header + const CURRENT_VERSION = "v0.1.3" + console.log(CURRENT_VERSION) + if (localStorage.getItem("VERSION")< CURRENT_VERSION || localStorage.getItem("VERSION") == null){ + localStorage.clear(); + localStorage.setItem("VERSION", CURRENT_VERSION); + } // scrolling to top on every page change useEffect(() => {