forked from abner/for-legacy-web
Add push notification handling code into sw
This commit is contained in:
1 parent
d74bc1d8e8
commit
8a0d90e292
2 files changed
+109
-2
No files matched your search
@@ -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" ]) {
|
||||
|
||||
Reference in new issue
Block a user