Skip to content

Commit

Permalink
Fix terminal copy on firefox
Browse files Browse the repository at this point in the history
  • Loading branch information
niallthomson committed Sep 3, 2024
1 parent e6f3e6c commit 5c48874
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions website/src/components/Terminal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,13 +150,7 @@ class TerminalSection {
}

function triggerCopy(text: string) {
navigator.permissions
.query({ name: "clipboard-write" as PermissionName })
.then((e) => {
if (e.state === "granted") {
navigator.clipboard.writeText(text);
}
});
navigator.clipboard.writeText(text);

window.parent.postMessage(`eks-workshop-terminal:${text}`, "*");
}
Expand Down

0 comments on commit 5c48874

Please sign in to comment.