Skip to content

Commit

Permalink
Use existing clipboard helper
Browse files Browse the repository at this point in the history
  • Loading branch information
bastianallgeier committed Nov 9, 2024
1 parent 78ccaf7 commit 1b98a11
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion panel/src/panel/events.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { lcfirst } from "@/helpers/string";
import clipboard from "@/helpers/clipboard";
import mitt from "mitt";

/**
Expand Down Expand Up @@ -38,7 +39,7 @@ export default (panel) => {
* @since 5.0.0
*/
emitter.on("copyToClipboard", async (e) => {
navigator.clipboard.writeText(e);
clipboard.write(e);
panel.notification.success(panel.t("copy.success") + "!");
});

Expand Down

0 comments on commit 1b98a11

Please sign in to comment.