fix: blogmark bookmarklet uses bds2:// scheme to avoid legacy bds:// clash
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user