also exclude Terminado

This commit is contained in:
Felipe Gasper
2017-10-16 15:32:46 +01:00
parent 6fa08d3cc0
commit a53ca789ea
+4 -6
View File
@@ -19,12 +19,10 @@
addon(window.Terminal);
}
})(function _zmodemAddon(Terminal) {
if (Terminal.prototype.attach) {
throw "The “zmodem” and “attach” addons are mutually incompatible.";
}
function _makeSendWsWrapper(socket) {
return
for (let f of ["attach", "terminadoAttach"]) {
if (Terminal.prototype[f]) {
throw new Error(`The “zmodem” and “${f}” addons are mutually incompatible.`);
}
}
Object.assign(