mirror of
https://codeberg.org/valpackett/tiddlypwa.git
synced 2026-03-14 11:50:48 -07:00
Plugin: minor cleanups
This commit is contained in:
parent
263e5d82f6
commit
8ceb34fe33
2 changed files with 8 additions and 4 deletions
|
|
@ -2,6 +2,8 @@ title: $:/plugins/valpackett/tiddlypwa/config
|
|||
tags: $:/tags/ControlPanel
|
||||
caption: Storage and Sync
|
||||
|
||||
\define tv-wikilinks() no
|
||||
|
||||
<$reveal type="match" state="$:/status/TiddlyPWADocsMode" text="yes">
|
||||
TiddlyPWA is running in documentation/installer mode.
|
||||
</$reveal>
|
||||
|
|
|
|||
|
|
@ -49,7 +49,6 @@ Formatted with `deno fmt`.
|
|||
}
|
||||
|
||||
function b64dec(base64) {
|
||||
// welp touching binary strings here but seems to be a decent compact way
|
||||
return Uint8Array.from(atob(base64), (c) => c.charCodeAt(0));
|
||||
}
|
||||
|
||||
|
|
@ -247,7 +246,7 @@ Formatted with `deno fmt`.
|
|||
this.startedMonitor = true;
|
||||
if (this.monitorTimeout < 60000) this.monitorTimeout *= 2;
|
||||
clearTimeout(this.monitorTimer);
|
||||
this.monitorTimer = setTimeout(async () => {
|
||||
this.monitorTimer = setTimeout(() => {
|
||||
if (!navigator.locks) {
|
||||
this._startRealtimeMonitor();
|
||||
}
|
||||
|
|
@ -349,7 +348,9 @@ Formatted with `deno fmt`.
|
|||
setTimeout(() => {
|
||||
try {
|
||||
$tw.__update_tiddlypwa_manifest__();
|
||||
} catch (_e) {}
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}, 300);
|
||||
return true;
|
||||
}
|
||||
|
|
@ -455,7 +456,7 @@ Formatted with `deno fmt`.
|
|||
},
|
||||
eventListeners: [{
|
||||
name: 'click',
|
||||
handlerFunction: (e) => giveUp.abort(),
|
||||
handlerFunction: () => giveUp.abort(),
|
||||
}],
|
||||
})), 6900);
|
||||
timeoutModal = setTimeout(openModal, 1000);
|
||||
|
|
@ -549,6 +550,7 @@ Formatted with `deno fmt`.
|
|||
showForm();
|
||||
openModal();
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
clearTimeout(timeoutGiveUpBtn);
|
||||
body.innerHTML = '<p>Oops, looks like there is no information about the current server to be found!</p>';
|
||||
body.innerHTML += '<p>Oh well, synchronization can be set up later in the settings.</p>';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue