Removed double-scrolling on /spec

This commit is contained in:
ポール ウェッブ 2019-02-07 11:50:04 -06:00
parent 6752d51c1b
commit 241926c649

View file

@ -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`
<div style="width: 100%; height: calc(100vh - 4rem)">
@ -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;