Fix demo not working anymore

box-drawing
cpsdqs 7 years ago
parent 9dee9e1628
commit 49d6c7d1bf
Signed by untrusted user: cpsdqs
GPG Key ID: 3F59586BB7448DD1
  1. 3
      js/demo.js
  2. 2
      js/term_conn.js

@ -889,7 +889,10 @@ window.demoInterface = {
}
}
},
didInit: false,
init (screen) {
if (this.didInit) return
this.didInit = true
this.terminal = new ScrollingTerminal(screen)
this.shell = new DemoShell(this.terminal, true)
}

@ -132,7 +132,7 @@ window.Conn = class TermConnection extends EventEmitter {
if (typeof window.demoInterface === 'undefined') {
alert('Demoing non-demo build!') // this will catch mistakes when deploying to the website
} else {
demoInterface.init(screen)
demoInterface.init(this.screen)
showPage()
}
return

Loading…
Cancel
Save