mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: fix worker types
This commit is contained in:
1 parent
ccb380852f
commit
fd8c0c373b
3 files changed
+10
-2
No files matched your search
@@ -1,3 +1,5 @@
|
||||
/// <reference no-default-lib="true"/>
|
||||
/// <reference lib="ES2015" />
|
||||
/// <reference types="@types/serviceworker" />
|
||||
/* global clients */
|
||||
// eslint-disable-next-line no-restricted-globals
|
||||
@@ -10,5 +12,6 @@ addEventListener('notificationclick', (event) => {
|
||||
if (client.url === '/home/messages' && 'focus' in client) return client.focus();
|
||||
}
|
||||
if (clients.openWindow) clients.openWindow('/home/messages');
|
||||
return null;
|
||||
}));
|
||||
});
|
||||
Reference in new issue
Block a user