summaryrefslogtreecommitdiff
path: root/packages/frontend/src/utility/get-embed-code.ts
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2025-06-03 07:31:19 +0900
committerGitHub <noreply@github.com>2025-06-03 07:31:19 +0900
commit3bc81522c65d724de121cbe6265c60e48a8f8ae7 (patch)
tree1d526c17f19ec0209d2a4b179cb6756e25b2b916 /packages/frontend/src/utility/get-embed-code.ts
parent[skip ci] Update CHANGELOG.md (prepend template) (diff)
downloadmisskey-3bc81522c65d724de121cbe6265c60e48a8f8ae7.tar.gz
misskey-3bc81522c65d724de121cbe6265c60e48a8f8ae7.tar.bz2
misskey-3bc81522c65d724de121cbe6265c60e48a8f8ae7.zip
enhance(frontend): IDにUUIDを使うのをやめる (#16138)
* wip * Update flash-edit.vue
Diffstat (limited to 'packages/frontend/src/utility/get-embed-code.ts')
-rw-r--r--packages/frontend/src/utility/get-embed-code.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/frontend/src/utility/get-embed-code.ts b/packages/frontend/src/utility/get-embed-code.ts
index de36314ac2..5ccd46cfe2 100644
--- a/packages/frontend/src/utility/get-embed-code.ts
+++ b/packages/frontend/src/utility/get-embed-code.ts
@@ -3,7 +3,7 @@
* SPDX-License-Identifier: AGPL-3.0-only
*/
import { defineAsyncComponent } from 'vue';
-import { v4 as uuid } from 'uuid';
+import { genId } from '@/utility/id.js';
import { url } from '@@/js/config.js';
import { defaultEmbedParams, embedRouteWithScrollbar } from '@@/js/embed-page.js';
import type { EmbedParams, EmbeddableEntity } from '@@/js/embed-page.js';
@@ -44,7 +44,7 @@ export function normalizeEmbedParams(params: EmbedParams): Record<string, string
* 埋め込みコードを生成(iframe IDの発番もやる)
*/
export function getEmbedCode(path: string, params?: EmbedParams): string {
- const iframeId = 'v1_' + uuid(); // 将来embed.jsのバージョンが上がったとき用にv1_を付けておく
+ const iframeId = 'v1_' + genId(); // 将来embed.jsのバージョンが上がったとき用にv1_を付けておく
let paramString = '';
if (params) {