From 158d7614a5292b520d5537eaf2988a61206d72f4 Mon Sep 17 00:00:00 2001 From: Alex Grintsvayg Date: Thu, 31 Jan 2019 12:32:37 -0500 Subject: [PATCH] pdf button. Fixes #6 --- _layouts/spec.html | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/_layouts/spec.html b/_layouts/spec.html index ea45459..b86df5f 100644 --- a/_layouts/spec.html +++ b/_layouts/spec.html @@ -13,8 +13,11 @@

LBRY: A Decentralized Digital Content Marketplace

-
Menu
- + + Save as PDF + +
Menu
+
{{ content }}
@@ -50,7 +53,7 @@ // Handle external links const links = document.links; for (var i = 0; i < links.length; i++) { - if (links[i].hostname != window.location.hostname) { + if (links[i].hostname != window.location.hostname && !links[i].href.startsWith("javascript:")) { links[i].target = '_blank'; links[i].className += ' external-link'; links[i].rel = "noopener";