fix: fix typescript issues

This commit is contained in:
Andrew Bastin
2021-07-24 17:45:48 -04:00
parent f0aaca2639
commit 4508e309c2
5 changed files with 38 additions and 39 deletions

View File

@@ -71,7 +71,7 @@ export default defineComponent({
})
this.$subscribeTo(getSettingSubject("BG_COLOR"), (color) => {
this.$colorMode.preference = color
;(this as any).$colorMode.preference = color
})
},
async mounted() {
@@ -85,7 +85,7 @@ export default defineComponent({
"background-color:black;padding:4px 8px;border-radius:8px;font-size:16px;color:white;"
)
const workbox = await window.$workbox
const workbox = await (window as any).$workbox
if (workbox) {
workbox.addEventListener("installed", (event: any) => {
if (event.isUpdate) {