fix(terminal) chrome does not display anything on first open (#214)

This commit is contained in:
coderaiser 2019-02-15 13:55:41 +02:00
parent e6774023ce
commit f9bf2dcbcd

View file

@ -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;