refactor: types

This commit is contained in:
liyasthomas
2021-07-24 16:28:32 +05:30
parent 4de55c39dd
commit 4c2a9c1229
30 changed files with 136 additions and 129 deletions

View File

@@ -87,7 +87,7 @@ export default defineComponent({
const workbox = await window.$workbox
if (workbox) {
workbox.addEventListener("installed", (event) => {
workbox.addEventListener("installed", (event: any) => {
if (event.isUpdate) {
this.$toast.show(this.$t("new_version_found").toString(), {
icon: "info",
@@ -112,8 +112,5 @@ export default defineComponent({
logPageView(this.$router.currentRoute.fullPath)
},
beforeDestroy() {
document.removeEventListener("keydown", this._keyListener)
},
})
</script>