Skip to content

Commit af90a09

Browse files
authored
Merge pull request #45 from webxdc/adb/tweak-links
add target=_blank for https link
2 parents b268239 + 87c60a9 commit af90a09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/links.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
window.addEventListener("load", () => {
22
let ul = h("ul");
33
ul.append(
4-
h("li", {}, h("a", {href: "https://delta.chat"}, "Normal link: https://delta.chat (should be blocked)")),
4+
h("li", {}, h("a", {target:"_blank", href: "https://delta.chat"}, "Normal link: https://delta.chat (should ask to open externally)")),
55
h("li", {}, h("a", {href: "mailto:delta@example.org?body=test+message"}, "Mailto link")),
66
h("li", {}, h("a", {href: "OPENPGP4FPR:571E6FDC22C1605512A1B0C8F7AC9331B82AFB5B#a=delta%40example.org&n=TestContact&i=pHMb3fRw-JV&s=VcWU-pQSEeB"}, "old openpgp4fpr: QR verification link")),
77
h("li", {}, h("a", {target:"_blank", href: "https://i.delta.chat/#9AF055DB87EC48A1C009B6CA55E3712A6F7D346F&a=botsindex%40nine.testrun.org&n=Public%20Bots&i=QpBSronexvP&s=nAfQ0q_JomN"}, "New i.delta.chat invite link")),

0 commit comments

Comments
 (0)