Add push notification handling code into sw

This commit is contained in:
Paul
2021-06-22 14:37:38 +01:00
parent d74bc1d8e8
commit 8a0d90e292
2 changed files with 109 additions and 2 deletions

View File

@@ -51,6 +51,7 @@ function Context({ auth, sync, children, dispatcher }: Props) {
(async () => {
let db;
try {
// Match sw.ts#L23
db = await openDB('state', 3, {
upgrade(db) {
for (let store of [ "channels", "servers", "users", "members" ]) {