Fixex announcement web not close after acknowledgement

This commit is contained in:
Alex Tran 2022-06-11 19:58:16 -05:00
parent 53cd9fd8bf
commit 587b77e70b
No known key found for this signature in database
GPG key ID: E4954BC787B85C8A
2 changed files with 5 additions and 2 deletions

View file

@ -7,10 +7,12 @@
export let localVersion: string;
export let remoteVersion: string;
const dispatch = createEventDispatcher();
const acknowledgeClickHandler = () => {
localStorage.setItem('appVersion', remoteVersion);
goto($page.url.pathname);
dispatch('close');
};
</script>