more web cleanup

This commit is contained in:
Eugene Pankov
2021-06-19 22:52:18 +02:00
parent 6742c77378
commit b60c36054f
25 changed files with 105 additions and 62 deletions

View File

@@ -158,7 +158,7 @@ export class XTermFrontend extends Frontend {
this.opened = true
// Work around font loading bugs
await new Promise(resolve => setTimeout(resolve, process.env.XWEB ? 1000 : 0))
await new Promise(resolve => setTimeout(resolve, this.hostApp.platform === Platform.Web ? 1000 : 0))
if (this.enableWebGL) {
this.webGLAddon = new WebglAddon()