Initial curated DockDeck source from 26772208f608782e88c736dc70878e7b5abd3916

This commit is contained in:
Public Source Publisher committed 2026-10-01 01:44:08 +02:00
commit 3c61fba98f
146 files changed
+45229

No files matched your search

@@ -0,0 +1,21 @@
/* global chrome, document, URL */
const input = document.querySelector("#dockdeck-url");
const status = document.querySelector("#status");
chrome.storage.sync
.get({ dockdeckUrl: "http://127.0.0.1:1218/" })
.then(({ dockdeckUrl }) => {
input.value = dockdeckUrl;
});
document.querySelector("#save").addEventListener("click", async () => {
try {
const url = new URL(input.value.trim());
if (!["http:", "https:"].includes(url.protocol)) throw new Error();
await chrome.storage.sync.set({ dockdeckUrl: url.href });
status.textContent = "Saved.";
} catch {
status.textContent = "Enter a valid HTTP(S) URL.";
}
});