Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/push/providers.js
Show First 20 Lines • Show All 95 Lines • ▼ Show 20 Lines | webpush.setVapidDetails( | ||||
'mailto:support@comm.app', | 'mailto:support@comm.app', | ||||
cachedWebPushConfig.publicKey, | cachedWebPushConfig.publicKey, | ||||
cachedWebPushConfig.privateKey, | cachedWebPushConfig.privateKey, | ||||
); | ); | ||||
} | } | ||||
return cachedWebPushConfig; | return cachedWebPushConfig; | ||||
} | } | ||||
async function ensureWebPushInitialized() { | |||||
if (cachedWebPushConfig) { | |||||
return; | |||||
} | |||||
await getWebPushConfig(); | |||||
} | |||||
export { | export { | ||||
getAPNPushProfileForCodeVersion, | getAPNPushProfileForCodeVersion, | ||||
getFCMPushProfileForCodeVersion, | getFCMPushProfileForCodeVersion, | ||||
getAPNProvider, | getAPNProvider, | ||||
getFCMProvider, | getFCMProvider, | ||||
endFirebase, | endFirebase, | ||||
endAPNs, | endAPNs, | ||||
getAPNsNotificationTopic, | getAPNsNotificationTopic, | ||||
getWebPushConfig, | getWebPushConfig, | ||||
ensureWebPushInitialized, | |||||
}; | }; |