mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 10:45:47 +00:00
fix(terminal) chrome does not display anything on first open (#214)
This commit is contained in:
parent
e6774023ce
commit
f9bf2dcbcd
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue