Compare commits
2 commits
f240e8d5c6
...
07d4fab38d
| Author | SHA1 | Date | |
|---|---|---|---|
| 07d4fab38d | |||
| 68012a5e15 |
2 changed files with 4 additions and 10 deletions
|
|
@ -308,6 +308,9 @@ if( typeof AFRAME != 'undefined '){
|
||||||
httpfs: "com/isoterminal/feat/httpfs.js",
|
httpfs: "com/isoterminal/feat/httpfs.js",
|
||||||
autorestore: "com/isoterminal/feat/autorestore.js",
|
autorestore: "com/isoterminal/feat/autorestore.js",
|
||||||
}
|
}
|
||||||
|
if( document.location.hash.match(/#test/) || this.data.debug ){
|
||||||
|
features['tests'] = "tests/index.js"
|
||||||
|
}
|
||||||
if( this.data.emulator == 'fbterm' ){
|
if( this.data.emulator == 'fbterm' ){
|
||||||
features['fbtermjs'] = "com/isoterminal/term.js"
|
features['fbtermjs'] = "com/isoterminal/term.js"
|
||||||
features['fbterm'] = "com/isoterminal/feat/term.js"
|
features['fbterm'] = "com/isoterminal/feat/term.js"
|
||||||
|
|
@ -367,7 +370,6 @@ if( typeof AFRAME != 'undefined '){
|
||||||
this.term.addEventListener('ready', (e) => {
|
this.term.addEventListener('ready', (e) => {
|
||||||
instance.dom.classList.remove('blink')
|
instance.dom.classList.remove('blink')
|
||||||
this.term.emit('status',"running")
|
this.term.emit('status',"running")
|
||||||
if( this.data.debug ) this.runTests()
|
|
||||||
})
|
})
|
||||||
|
|
||||||
this.term.addEventListener('status', function(e){
|
this.term.addEventListener('status', function(e){
|
||||||
|
|
@ -414,14 +416,6 @@ if( typeof AFRAME != 'undefined '){
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
runTests: async function(){
|
|
||||||
await AFRAME.utils.require({
|
|
||||||
"test_util": "tests/util.js",
|
|
||||||
"test_isoterminal":"tests/ISOTerminal.js"
|
|
||||||
})
|
|
||||||
console.test.run()
|
|
||||||
},
|
|
||||||
|
|
||||||
setupPasteDrop: function(){
|
setupPasteDrop: function(){
|
||||||
this.el.addEventListener('pasteFile', (e) => {
|
this.el.addEventListener('pasteFile', (e) => {
|
||||||
e.preventDefault() // prevent bubbling up to window (which is triggering this initially)
|
e.preventDefault() // prevent bubbling up to window (which is triggering this initially)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue