Skip to content

Commit 7edbe95

Browse files
devvaannshabose
authored andcommitted
fix: terminal paste button opens another paste option from chromium
1 parent fe47aa7 commit 7edbe95

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • src/extensionsIntegrated/Terminal

src/extensionsIntegrated/Terminal/main.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,10 +846,12 @@ define(function (require, exports, module) {
846846
const active = _getActiveTerminal();
847847
if (active && active.isAlive) {
848848
active.focus();
849-
navigator.clipboard.readText().then(function (text) {
849+
Phoenix.app.clipboardReadText().then(function (text) {
850850
if (text) {
851851
nodeConnector.execPeer("writeTerminal", {id: active.id, data: text});
852852
}
853+
}).catch(function (err) {
854+
console.error("Terminal paste failed:", err);
853855
});
854856
}
855857
});

0 commit comments

Comments
 (0)