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 => {
|
export default state => {
|
||||||
state.hideFooter = true;
|
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`
|
return html`
|
||||||
<div style="width: 100%; height: calc(100vh - 4rem)">
|
<div style="width: 100%; height: calc(100vh - 4rem)">
|
||||||
|
@ -23,6 +27,8 @@ export default state => {
|
||||||
const spec = document.getElementById("spec");
|
const spec = document.getElementById("spec");
|
||||||
spec.src = specDomain + window.location.hash;
|
spec.src = specDomain + window.location.hash;
|
||||||
|
|
||||||
|
document.querySelector("body").style["overflow-y"] = "hidden";
|
||||||
|
|
||||||
window.addEventListener("message", event => {
|
window.addEventListener("message", event => {
|
||||||
if (event.origin !== specDomain || event.source !== spec.contentWindow) // security
|
if (event.origin !== specDomain || event.source !== spec.contentWindow) // security
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue