diff --git a/ventures/havre/index.html b/ventures/havre/index.html index 8df3166..a1cff52 100644 --- a/ventures/havre/index.html +++ b/ventures/havre/index.html @@ -29,7 +29,7 @@

HAVRE

a harbor for characters.
talk to venice characters on your own key.
no account. no server. nothing kept but what you keep.

- +
diff --git a/ventures/havre/open/havre-key.js b/ventures/havre/open/havre-key.js new file mode 100644 index 0000000..f0522a4 --- /dev/null +++ b/ventures/havre/open/havre-key.js @@ -0,0 +1,8 @@ +(function () { + try { + if (sessionStorage.getItem("venice-auth")) return; + var raw = sessionStorage.getItem("havre.key") || localStorage.getItem("havre.key"); + var key = raw ? JSON.parse(raw) : ""; + if (typeof key === "string" && key) sessionStorage.setItem("venice-auth", key); + } catch (e) { /* no key then */ } +})(); diff --git a/ventures/havre/open/index.html b/ventures/havre/open/index.html index e8357ed..e52ecae 100644 --- a/ventures/havre/open/index.html +++ b/ventures/havre/open/index.html @@ -1,6 +1,6 @@ - + diff --git a/ventures/havre/shots/desktop.png b/ventures/havre/shots/desktop.png index 2bf2f5d..70c1aab 100644 Binary files a/ventures/havre/shots/desktop.png and b/ventures/havre/shots/desktop.png differ diff --git a/ventures/havre/tools/open.sh b/ventures/havre/tools/open.sh index 74efd73..9cff705 100644 --- a/ventures/havre/tools/open.sh +++ b/ventures/havre/tools/open.sh @@ -10,6 +10,19 @@ git -C "$src" checkout -q "$OV_REF" (cd "$src" && npm ci --silent --no-audit --no-fund >/dev/null && npx vite build --base=/open/ >/dev/null) rm -rf open cp -R "$src/dist" open +# Havre's key, handed to openvenice: same origin, so it's only a copy between two storage slots in this browser +cat > open/havre-key.js <<'EOF' +(function () { + try { + if (sessionStorage.getItem("venice-auth")) return; + var raw = sessionStorage.getItem("havre.key") || localStorage.getItem("havre.key"); + var key = raw ? JSON.parse(raw) : ""; + if (typeof key === "string" && key) sessionStorage.setItem("venice-auth", key); + } catch (e) { /* no key then */ } +})(); +EOF +sed -i.bak 's|||' open/index.html && rm -f open/index.html.bak +grep -q havre-key.js open/index.html cat > open/LICENSE.txt <