FIX: refreshing app
continuous-integration/drone/push Build is passing

This commit is contained in:
2026-09-07 23:31:35 +03:00
parent cd98ea6e32
commit 91e293eccd
2 changed files with 4 additions and 9 deletions
+3 -5
View File
@@ -14,18 +14,15 @@ export function useUpdateApp() {
})
const toast = useToast()
if (import.meta.env.DEV) console.log({ SWNeedRefresh: needRefresh.value })
async function close(e) {
needRefresh.value = false
e?.stopPropagation()
}
// New version
watch(
() => needRefresh,
needRefresh,
(n) => {
if (import.meta.env.DEV) console.log('NeedRefresh:', n)
if (n) {
toast.add({
title: 'Update',
@@ -53,5 +50,6 @@ export function useUpdateApp() {
})
}
},
{ immediate: true },
)
}