Removed double-scrolling on /spec
This commit is contained in:
parent
6752d51c1b
commit
241926c649
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue