Skip to content

Commit 89039de

Browse files
authored
Bugfix: Fix inability to copy content to clipboard in http (#3292)
1 parent f95e6d1 commit 89039de

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

frontend/app/[locale]/users/components/UserProfileComp.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ import { OAuthAccountsSection } from "@/components/settings/OAuthAccountsSection
3939
import log from "@/lib/logger";
4040
import { authService } from "@/services/authService";
4141
import { getPasswordChecks, getStrengthLevel } from "@/lib/utils";
42+
import { copyToClipboard } from "@/lib/clipboard";
4243
import { useConfirmModal } from "@/hooks/useConfirmModal";
4344
import {
4445
getUserTokens,
@@ -199,7 +200,7 @@ export default function UserProfileComp() {
199200
const handleCopyAk = async () => {
200201
if (akInfo) {
201202
try {
202-
await navigator.clipboard.writeText(akInfo);
203+
await copyToClipboard(akInfo);
203204
antdMessage.success(
204205
t("profile.copyAkSuccess") || "Access key copied to clipboard"
205206
);

0 commit comments

Comments
 (0)