summaryrefslogtreecommitdiff
path: root/packages/frontend/src/utility/get-embed-code.ts
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-03-16 15:04:38 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2025-03-16 15:04:38 +0900
commit81a0cbd294bd6485fc47200b1bf63dbf2cbc8507 (patch)
tree305e1c3c8f884e8a6383e2a9020d5df3bcc7b0a9 /packages/frontend/src/utility/get-embed-code.ts
parent🎨 (diff)
downloadsharkey-81a0cbd294bd6485fc47200b1bf63dbf2cbc8507.tar.gz
sharkey-81a0cbd294bd6485fc47200b1bf63dbf2cbc8507.tar.bz2
sharkey-81a0cbd294bd6485fc47200b1bf63dbf2cbc8507.zip
chore(frontend): use toast to show message when call copyToClipboard
Diffstat (limited to 'packages/frontend/src/utility/get-embed-code.ts')
-rw-r--r--packages/frontend/src/utility/get-embed-code.ts5
1 files changed, 2 insertions, 3 deletions
diff --git a/packages/frontend/src/utility/get-embed-code.ts b/packages/frontend/src/utility/get-embed-code.ts
index 9021520da8..d458e64f19 100644
--- a/packages/frontend/src/utility/get-embed-code.ts
+++ b/packages/frontend/src/utility/get-embed-code.ts
@@ -4,11 +4,11 @@
*/
import { defineAsyncComponent } from 'vue';
import { v4 as uuid } from 'uuid';
-import type { EmbedParams, EmbeddableEntity } from '@@/js/embed-page.js';
import { url } from '@@/js/config.js';
+import { defaultEmbedParams, embedRouteWithScrollbar } from '@@/js/embed-page.js';
+import type { EmbedParams, EmbeddableEntity } from '@@/js/embed-page.js';
import * as os from '@/os.js';
import { copyToClipboard } from '@/utility/copy-to-clipboard.js';
-import { defaultEmbedParams, embedRouteWithScrollbar } from '@@/js/embed-page.js';
const MOBILE_THRESHOLD = 500;
@@ -74,7 +74,6 @@ export function genEmbedCode(entity: EmbeddableEntity, id: string, params?: Embe
// PCじゃない場合はコードカスタマイズ画面を出さずにそのままコピー
if (window.innerWidth < MOBILE_THRESHOLD) {
copyToClipboard(getEmbedCode(`/embed/${entity}/${id}`, _params));
- os.success();
} else {
const { dispose } = os.popup(defineAsyncComponent(() => import('@/components/MkEmbedCodeGenDialog.vue')), {
entity,