Skip to content

Commit

Permalink
Fix build error
Browse files Browse the repository at this point in the history
  • Loading branch information
yoyo930021 committed Jul 17, 2023
1 parent 9193167 commit 9dd3df7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 0 additions & 2 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ import Footer from '@/components/App/Footer.vue'
import OfflineBar from '@/components/App/OfflineBar.vue'
import { FullPageProgress } from '@/modules/progress'
import { PopUp } from '@/modules/pop-up'
import { registerSW } from 'virtual:pwa-register'
import '@/assets/scss/app.scss'
Expand All @@ -58,7 +57,6 @@ export default defineComponent({
setup () {
setupModules()
const route = useRoute()
registerSW({ immediate: true })
const isInApp = ref(false)
const landingOnly = import.meta.env.VITE_LANDING_ONLY === 'yes'
Expand Down
1 change: 1 addition & 0 deletions src/modules/pwa/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ const _useRegisterSW = () => {
router.isReady().then(async () => {
const { registerSW } = await import('virtual:pwa-register')
registerSW({
immediate: true,
onRegistered (r) {
if (!r) return
console.log('onRegistered')
Expand Down

0 comments on commit 9dd3df7

Please sign in to comment.