mirror of
https://codeberg.org/valpackett/tiddlypwa.git
synced 2025-12-06 02:30:48 -08:00
parent
2b24d09952
commit
777aa2d54f
1 changed files with 1 additions and 0 deletions
|
|
@ -286,6 +286,7 @@ Formatted with `deno fmt`.
|
|||
} catch (e) {
|
||||
console.error(e);
|
||||
if (!navigator.onLine) return;
|
||||
if (location.protocol !== 'http:' && location.protocol !== 'https:') return;
|
||||
$tw.wiki.addTiddler({ title: '$:/status/TiddlyPWAWorkerError', text: e.message });
|
||||
$tw.notifier.display('$:/plugins/valpackett/tiddlypwa/notif-sw-error');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue