From 241926c649435223919e84ab720df4bdd53742fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Thu, 7 Feb 2019 11:50:04 -0600 Subject: [PATCH] Removed double-scrolling on /spec --- app/views/spec.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/views/spec.js b/app/views/spec.js index f351039..2e01bb0 100644 --- a/app/views/spec.js +++ b/app/views/spec.js @@ -12,6 +12,10 @@ import html from "choo/html"; export default state => { state.hideFooter = true; + state.lbry = { + title: "LBRY Specification", + description: "A detailed specification of the LBRY protocol. Learn exactly what LBRY is and how it works!" + }; return html`
@@ -23,6 +27,8 @@ export default state => { const spec = document.getElementById("spec"); spec.src = specDomain + window.location.hash; + document.querySelector("body").style["overflow-y"] = "hidden"; + window.addEventListener("message", event => { if (event.origin !== specDomain || event.source !== spec.contentWindow) // security return;