fix: blogmark bookmarklet uses bds2:// scheme to avoid legacy bds:// clash

This commit is contained in:
2026-05-29 22:46:26 +02:00
parent ae6659bcf3
commit ebf6136d2f
5 changed files with 13 additions and 5 deletions

View File

@@ -46,7 +46,7 @@ defmodule BDS.Scripting.Capabilities.AppShell do
end
def blogmark_bookmarklet do
"javascript:(()=>{const t=encodeURIComponent(document.title||'');const u=encodeURIComponent(location.href||'');location.href='bds://new-post?title='+t+'&url='+u;})();"
"javascript:(()=>{const t=encodeURIComponent(document.title||'');const u=encodeURIComponent(location.href||'');location.href='bds2://new-post?title='+t+'&url='+u;})();"
end
def title_bar_metrics(opts) do

View File

@@ -3,7 +3,7 @@ defmodule BDS.Scripts.Transforms do
Runs the blogmark transform pipeline (spec: script.allium `ExecuteTransform`).
Enabled `transform` scripts for a project are applied sequentially to a post
candidate produced by a `bds://new-post` blogmark deep link. Each transform
candidate produced by a `bds2://new-post` blogmark deep link. Each transform
receives the current candidate plus a context describing the blogmark source
and origin URL, and returns the modified candidate.