Rename to Remora

This commit is contained in:
Veillax committed 2026-10-27 17:18:16 -06:00
1 parent ad165ef6a5
commit 69933f37e5
7 files changed
+17 -17

No files matched your search

+4 -4
View File
@@ -4,7 +4,7 @@
function kvGet(key) {
return new Promise((resolve, reject) => {
const r = indexedDB.open('sandbar-mobile', 1);
const r = indexedDB.open('remora', 1);
r.onupgradeneeded = () => r.result.createObjectStore('kv');
r.onerror = () => reject(r.error);
r.onsuccess = () => {
@@ -60,7 +60,7 @@ self.addEventListener('fetch', (e) => {
self.addEventListener('push', (e) => {
let p;
try { p = e.data.json(); } catch { p = { title: 'Sandbar', message: e.data ? e.data.text() : '' }; }
try { p = e.data.json(); } catch { p = { title: 'Remora', message: e.data ? e.data.text() : '' }; }
e.waitUntil(show(p));
});
@@ -85,7 +85,7 @@ async function show(p) {
timestamp: (p.time || Date.now() / 1000) * 1000,
actions: firing ? [{ action: 'ack', title: 'Acknowledge' }, { action: 'snooze', title: 'Snooze 30 min' }] : [],
};
await self.registration.showNotification(p.title || 'Sandbar', options);
await self.registration.showNotification(p.title || 'Remora', options);
}
self.addEventListener('notificationclick', (e) => {
@@ -103,7 +103,7 @@ self.addEventListener('notificationclick', (e) => {
return;
} catch (err) {
await self.registration.showNotification('Could not ' + (e.action === 'ack' ? 'acknowledge' : 'snooze') + ' the alert', {
body: err.message + ' Open Sandbar to try again.', tag: 'err-' + alert, data: { alert },
body: err.message + ' Open Remora to try again.', tag: 'err-' + alert, data: { alert },
});
return;
}