---
id: 2950
title: 'main.addon.ServiceWorker: onBeforeUnload()'
state: CLOSED
labels:
  - enhancement
assignees:
  - tobiu
createdAt: '2022-03-23T08:33:47Z'
updatedAt: '2022-03-23T08:34:38Z'
githubUrl: 'https://github.com/neomjs/neo/issues/2950'
author: tobiu
commentsCount: 0
parentIssue: null
subIssues: []
subIssuesCompleted: 0
subIssuesTotal: 0
blockedBy: []
blocking: []
closedAt: '2022-03-23T08:34:38Z'
---
# main.addon.ServiceWorker: onBeforeUnload()

We need a window beforeunload listener which will send a message to the SW (if available) and unregister the related port.

## Timeline

- 2022-03-23T08:33:47Z @tobiu added the `enhancement` label
- 2022-03-23T08:33:47Z @tobiu assigned to @tobiu
- 2022-03-23T08:34:32Z @tobiu referenced in commit `90f240e` - "main.addon.ServiceWorker: onBeforeUnload() #2950"
- 2022-03-23T08:34:38Z @tobiu closed this issue

