Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .vitepress/theme/components/ReloadPrompt.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let updateServiceWorker: (() => Promise<void>) | undefined
function onNeedRefresh() {
needRefresh.value = true
}
async function close() {
function close() {
needRefresh.value = false
}

Expand Down
4 changes: 2 additions & 2 deletions frameworks/vitepress.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ const offlineReady = ref(false)
function onOfflineReady() {
offlineReady.value = true
}
async function close() {
function close() {
offlineReady.value = false
}

Expand Down Expand Up @@ -182,7 +182,7 @@ function onOfflineReady() {
function onNeedRefresh() {
needRefresh.value = true
}
async function close() {
function close() {
offlineReady.value = false
needRefresh.value = false
}
Expand Down
2 changes: 1 addition & 1 deletion frameworks/vue.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const {
updateServiceWorker,
} = useRegisterSW()

async function close() {
function close() {
offlineReady.value = false
needRefresh.value = false
}
Expand Down
2 changes: 1 addition & 1 deletion guide/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ let updateServiceWorker: (() => Promise<void>) | undefined
function onNeedRefresh() {
needRefresh.value = true
}
async function close() {
function close() {
needRefresh.value = false
}

Expand Down