mirror of
https://github.com/arfct/itty-bitty.git
synced 2026-03-11 08:54:33 +00:00
Update bookmarklet text
This commit is contained in:
parent
66c7b917f4
commit
a019b03b74
2 changed files with 2 additions and 2 deletions
|
|
@ -20,7 +20,7 @@ loadSyle(script.replace("js", "css")).then(() => {
|
|||
el("div", {className:"description"}, params.info?.d ?? ""),
|
||||
el("a", {className:"bookmarklet", href:url}, el("span", {className:"capsule", innerText:"" + title || "Bookmarklet"})),
|
||||
el("p", {id:"emoji", innerText:"☝️"}),
|
||||
el("p", {innerHTML:`This page contains a <a target="_blank" href="https://en.wikipedia.org/wiki/Bookmarklet">bookmarklet</a>.`}),
|
||||
el("p", {innerHTML:`This page contains a bookmarklet. (<a target="_blank" href="https://en.wikipedia.org/wiki/Bookmarklet">learn more</a>)`}),
|
||||
|
||||
el("p", {className:"", innerText:`Drag this bookmarklet to your ${managerName} to use it.`}),
|
||||
el("p", {className:"hint desktop", innerText:`(Hit ${cmdKey} to toggle the ${managerName} bar)`}),
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ export default async (request, context) => {
|
|||
const ua = request.headers.get("user-agent");
|
||||
let url = new URL(request.url);
|
||||
let path = url.pathname;
|
||||
let geo = context.geo.city + ", " + context?.geo?.subdivision?.code + ", " + context?.geo?.country?.code
|
||||
let geo = context?.geo?.city + ", " + context?.geo?.subdivision?.code + ", " + context?.geo?.country?.code
|
||||
|
||||
let uaArray = Deno.env.get("UA_ARRAY")?.split(",") || [];
|
||||
let uaMatch = uaArray.some(a => ua.indexOf(a) != -1);
|
||||
|
|
|
|||
Loading…
Reference in a new issue