From a7ab15319b9694d89234ba15cb58108de9b7cc81 Mon Sep 17 00:00:00 2001 From: kakkokari-gtyih <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 18 Jul 2024 20:20:41 +0900 Subject: [PATCH] fix --- packages/frontend/src/scripts/get-embed-code.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/scripts/get-embed-code.ts b/packages/frontend/src/scripts/get-embed-code.ts index e5a2858fdd..3a3b51fef4 100644 --- a/packages/frontend/src/scripts/get-embed-code.ts +++ b/packages/frontend/src/scripts/get-embed-code.ts @@ -7,7 +7,7 @@ import { v4 as uuid } from 'uuid'; import { url } from '@/config.js'; import { MOBILE_THRESHOLD } from '@/const.js'; import * as os from '@/os.js'; -import copy from '@/scripts/copy-to-clipboard.js'; +import { copyToClipboard } from '@/scripts/copy-to-clipboard.js'; import type { EmbedParams, EmbeddableEntity } from '@/scripts/embed-page.js'; import { defaultEmbedParams, embedRouteWithScrollbar } from '@/scripts/embed-page.js'; @@ -73,7 +73,7 @@ export function copyEmbedCode(entity: EmbeddableEntity, idOrUsername: string, pa // PCじゃない場合はコードカスタマイズ画面を出さずにそのままコピー if (window.innerWidth < MOBILE_THRESHOLD) { const _idOrUsername = entity === 'user-timeline' ? `@${idOrUsername}` : idOrUsername; - copy(getEmbedCode(`/embed/${entity}/${_idOrUsername}`, _params)); + copyToClipboard(getEmbedCode(`/embed/${entity}/${_idOrUsername}`, _params)); os.success(); } else { const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkEmbedCodeGenDialog.vue')), {