feat(push): read URL from notification

also matches fix on delta, closes #410
This commit is contained in:
Paul 2021-11-20 12:53:35 +00:00
parent 6748ec9295
commit 657e9eb04e

View file

@ -19,10 +19,10 @@ self.addEventListener("push", (event) => {
body: data.body, body: data.body,
timestamp: data.timestamp, timestamp: data.timestamp,
tag: data.tag, tag: data.tag,
badge: "https://app.revolt.chat/assets/icons/android-chrome-512x512.png" badge: "https://app.revolt.chat/assets/icons/android-chrome-512x512.png",
data: data.url,
}); });
} }
} }
event.waitUntil(process()); event.waitUntil(process());
}); });