fix capture

This commit is contained in:
2026-09-25 15:04:09 -07:00
parent f8bd5fce32
commit 41f5aa19a3
5 changed files with 19 additions and 16 deletions

View File

@@ -193,7 +193,7 @@ function header() {
el("select", { id: "user-select", class: "user-select", onchange: onUserChange }),
el("button", { class: "btn primary", text: "+ New note", onclick: () => openNote(null) }),
el("button", { class: "btn ghost", text: "Help", onclick: showHelp }),
el("button", { class: "btn ghost", text: "quickSnote", onclick: showTools }),
el("button", { class: "btn ghost", text: "QUICKsnote", onclick: showTools }),
themeSelector(),
]);
const burger = el("button", { class: "menu-toggle", title: "Menu", "aria-label": "Menu", onclick: () => menu.classList.toggle("open") }, [
@@ -218,7 +218,10 @@ function showHelp() {
const wrap = el("div", { class: "editor-wrap" }, [
el("div", { class: "editor-topbar" }, [back]),
el("div", { class: "help-card" }, [
el("h1", { text: "Help" }),
el("div", { class: "tools-head" }, [
el("img", { src: "/static/snotes-logo.png", class: "tools-logo", alt: "snotes" }),
el("h1", { text: "Help" }),
]),
el("h2", { text: "Keyboard shortcuts" }),
el("table", { class: "help-table" }, [
@@ -263,10 +266,10 @@ function showTools() {
const card = el("div", { class: "help-card" }, [
el("div", { class: "tools-head" }, [
el("img", { src: "/static/snotes-logo.png", class: "tools-logo", alt: "quickSnote" }),
el("h1", { text: "Quick capture" }),
el("img", { src: "/static/snotes-logo.png", class: "tools-logo", alt: "QUICKsnote" }),
el("h1", { text: "QUICKsnote" }),
]),
el("p", { html: 'The <b>quickSnote</b> browser extension lets you jot a note from any page. It prefills the note with the text you\'ve selected, and a <b>Page</b> button inserts the current page\'s title and link.' }),
el("p", { html: 'The <b>QUICKsnote</b> browser extension lets you jot a note from any page. It prefills the note with the text you\'ve selected, and a <b>Page</b> button inserts the current page\'s title and link.' }),
el("h2", { text: "Firefox" }),
el("div", { class: "tools-row" }, [installBtn, extStatus]),
@@ -327,7 +330,7 @@ function showTools() {
installBtn.addEventListener("click", () => {
if (detected) return;
if (window.InstallTrigger) InstallTrigger.install({ "quickSnote": xpiUrl });
if (window.InstallTrigger) InstallTrigger.install({ "QUICKsnote": xpiUrl });
else window.location.href = xpiUrl;
extStatus.textContent = "Installing… check toolbar for prompt";
stopPing();