Allow attach.js to work

This commit is contained in:
Felipe Gasper
2017-10-16 16:30:29 +01:00
parent a53ca789ea
commit 355d5970a6
3 changed files with 15 additions and 17 deletions
-6
View File
@@ -19,12 +19,6 @@
addon(window.Terminal);
}
})(function _zmodemAddon(Terminal) {
for (let f of ["attach", "terminadoAttach"]) {
if (Terminal.prototype[f]) {
throw new Error(`The “zmodem” and “${f}” addons are mutually incompatible.`);
}
}
Object.assign(
Terminal.prototype,
{