From 5c4887438262c2807a1ac532606765c0f12c7ed8 Mon Sep 17 00:00:00 2001 From: Niall Thomson Date: Tue, 3 Sep 2024 17:17:38 -0600 Subject: [PATCH] Fix terminal copy on firefox --- website/src/components/Terminal/index.tsx | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/website/src/components/Terminal/index.tsx b/website/src/components/Terminal/index.tsx index 6e88346f9..4f62c762a 100644 --- a/website/src/components/Terminal/index.tsx +++ b/website/src/components/Terminal/index.tsx @@ -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}`, "*"); }