Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit e3b3607

Browse files
committed
🐛 Fix clipboardButtons on v1.1.x
1 parent e15ca72 commit e3b3607

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/classes/clipboardButtons.class.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ class ClipboardButtons {
1515
this.parent.append(this._element);
1616

1717
document.querySelector("div#mod_clipboardButtons_inner > div:nth-child(2)").addEventListener("click", e => {
18-
window.term.clipboard.copy();
18+
window.term[window.currentTerm].clipboard.copy();
1919
});
2020
document.querySelector("div#mod_clipboardButtons_inner > div:last-child").addEventListener("click", e => {
21-
window.term.clipboard.paste();
21+
window.term[window.currentTerm].clipboard.paste();
2222
});
2323
}
2424
}

0 commit comments

Comments
 (0)