wip
This commit is contained in:
parent
c44a29ebb7
commit
f95ca164d6
11 changed files with 259 additions and 176 deletions
|
|
@ -12,7 +12,7 @@ type pushNotificationsTypes = {
|
|||
'readAllNotifications': undefined;
|
||||
};
|
||||
|
||||
export default async function<T extends keyof pushNotificationsTypes>(userId: string, type: T, body: pushNotificationsTypes[T]) {
|
||||
export async function pushNotification<T extends keyof pushNotificationsTypes>(userId: string, type: T, body: pushNotificationsTypes[T]) {
|
||||
const meta = await fetchMeta();
|
||||
|
||||
if (!meta.enableServiceWorker || meta.swPublicKey == null || meta.swPrivateKey == null) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue