feat: improve PWA update mechanism with visibility check
This commit is contained in:
@@ -5,6 +5,7 @@ import Header from './components/Header.vue'
|
||||
import Footer from './components/Footer.vue'
|
||||
import Sidebar from './components/Sidebar.vue'
|
||||
import InstallPrompt from './components/InstallPrompt.vue'
|
||||
import ReloadPrompt from './components/ReloadPrompt.vue'
|
||||
|
||||
const isSidebarOpen = ref(window.innerWidth >= 768)
|
||||
const router = useRouter()
|
||||
@@ -53,6 +54,7 @@ onUnmounted(() => {
|
||||
</div>
|
||||
<Footer />
|
||||
<InstallPrompt />
|
||||
<ReloadPrompt />
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
Reference in New Issue
Block a user