mirror of https://github.com/rancher/ui.git
Fix shell issue
This commit is contained in:
parent
d695cb4051
commit
4d44acc569
|
|
@ -101,7 +101,7 @@ export default Component.extend(ThrottledResize, {
|
|||
set(this,'term', term);
|
||||
|
||||
term.on('data', function (data) {
|
||||
socket.send(`0${btoa(window.unescape(encodeURIComponent(data)))}`);
|
||||
socket.send(`0${AWS.util.base64.encode(decodeURIComponent(data))}`);
|
||||
});
|
||||
|
||||
term.open(this.$('.shell-body')[0], true);
|
||||
|
|
@ -114,7 +114,7 @@ export default Component.extend(ThrottledResize, {
|
|||
case '1':
|
||||
case '2':
|
||||
case '3':
|
||||
term.write(decodeURIComponent(window.escape(atob(data))));
|
||||
term.write(decodeURIComponent(AWS.util.base64.decode(data)));
|
||||
break;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue