diff options
author | silverwind <me@silverwind.io> | 2021-08-17 07:32:48 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-17 01:32:48 -0400 |
commit | ea07726dc193c41c60e26c25ad705059bd4f6555 (patch) | |
tree | 5d3191bd5a1968893e599eadca279a3f527617b9 /web_src/js/features/notification.js | |
parent | cf4328359bb765ebccc592d8fe50cd8190455220 (diff) | |
download | gitea-ea07726dc193c41c60e26c25ad705059bd4f6555.tar.gz gitea-ea07726dc193c41c60e26c25ad705059bd4f6555.zip |
Update JS dependencies (#16708)
* Update JS dependencies
- Update all JS dependencies
- Adapt to recent webpack changes
- Add new lint rules and fix issues
- Regenerate SVGs and update svgo api usage
Fixes: https://github.com/go-gitea/gitea/pull/16492
* adapt jest config and sort keys
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'web_src/js/features/notification.js')
-rw-r--r-- | web_src/js/features/notification.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web_src/js/features/notification.js b/web_src/js/features/notification.js index d964ffa305..d1d829c90b 100644 --- a/web_src/js/features/notification.js +++ b/web_src/js/features/notification.js @@ -53,9 +53,9 @@ export async function initNotificationCount() { worker.addEventListener('error', (event) => { console.error(event); }); - worker.port.onmessageerror = () => { + worker.port.addEventListener('messageerror', () => { console.error('Unable to deserialize message'); - }; + }); worker.port.postMessage({ type: 'start', url: `${window.location.origin}${AppSubUrl}/user/events`, |