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;