This commit is contained in:
2026-09-23 13:51:53 -07:00
parent 6ea3f19b29
commit 163cad4f5f
4 changed files with 37 additions and 9 deletions

View File

@@ -114,12 +114,19 @@
browser.runtime.openOptionsPage();
});
function updateIndicator() {
var el = document.getElementById('server-indicator');
var display = serverUrl ? serverUrl.replace(/^https?:\/\//, '') : 'Set server URL…';
el.textContent = display;
el.title = serverUrl || '';
}
browser.storage.sync.get('serverUrl').then(function (r) {
serverUrl = (r.serverUrl || '').replace(/\/+$/, '');
if (!serverUrl) showStatus('Set the server URL in Options', false);
updateIndicator();
loadUsers();
});
loadUsers();
captureContext();
noteEl.focus();
})();