From f9bf2dcbcd76fa35195ff19fecad675a2401ab7d Mon Sep 17 00:00:00 2001 From: coderaiser Date: Fri, 15 Feb 2019 13:55:41 +0200 Subject: [PATCH] fix(terminal) chrome does not display anything on first open (#214) --- client/modules/terminal.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/client/modules/terminal.js b/client/modules/terminal.js index e8463fd1..71b793d2 100644 --- a/client/modules/terminal.js +++ b/client/modules/terminal.js @@ -44,11 +44,14 @@ const loadAll = async () => { Loaded = true; }; +const {IntersectionObserver} = window; + module.exports.init = async () => { if (!config('terminal')) return; Images.show.load('top'); + delete window.IntersectionObserver; await CloudCmd.View(); await loadAll(); @@ -86,8 +89,8 @@ function create() { socketPath: CloudCmd.prefix, fontFamily: 'Droid Sans Mono', }; - const {socket, terminal} = gritty(document.body, options); + window.IntersectionObserver = IntersectionObserver; Terminal = terminal;