Cleanly disconnect from the update stream if possible

This commit is contained in:
D. Scott Boggs 2023-06-21 06:23:36 -04:00
parent 7d4dcf15c1
commit 9c255b5f68

View file

@ -49,6 +49,7 @@ export const state = reactive({
error(event)
window.location = window.location
})
window.addEventListener('beforeunload', () => source.close())
},
async repopulate() {
this.state = State.Fetching