refactor: types
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user