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