diff --git a/com/isoterminal/feat/9pfs_utils.js b/com/isoterminal/feat/9pfs_utils.js index cdb49c2..551585e 100644 --- a/com/isoterminal/feat/9pfs_utils.js +++ b/com/isoterminal/feat/9pfs_utils.js @@ -36,7 +36,10 @@ emulator.fs9p.create_file_from_url = async function(file,url){ let arr = new Uint8Array(buf) return emulator.create_file(file, arr ) }) - .catch( console.error ) + .catch( (e) => { + emulator.create_file(file, new Uint8Array() ) // empty file so at least other processes can check for error (v86 has no retcodes for fs9p) + console.error(e) + }) } emulator.fs9p.append_file = async function(file,data){ diff --git a/com/isoterminal/feat/term.js b/com/isoterminal/feat/term.js index e26141f..3f1ef1c 100644 --- a/com/isoterminal/feat/term.js +++ b/com/isoterminal/feat/term.js @@ -25,16 +25,9 @@ ISOTerminal.prototype.TermInit = function(){ // patch Term-class Term.prototype.move_textarea = function(){} /* *TODO* *FIXME* does not work in winbox */ - Term.prototype.pasteHandler = function(original){ - return function (ev){ - original.apply(this,[ev]) - } - }( Term.prototype.pasteHandler ) - Term.prototype.keyDownHandler = function(original){ return function (e){ if ((e.ctrlKey || e.metaKey) && e.key === 'v') { - debugger return true; // bubble up to pasteHandler (see pastedrop.js) } original.apply(this,[e])