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 9e16306c61
commit b81485a3d5

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