mirror of
https://github.com/misskey-dev/misskey
synced 2024-12-03 09:19:03 +09:00
paramsの中身がない場合は ?
がつかないように修正
This commit is contained in:
parent
153a25bd30
commit
610d7d59e6
@ -48,7 +48,7 @@ export function getEmbedCode(path: string, params?: EmbedParams): string {
|
||||
let paramString = '';
|
||||
if (params) {
|
||||
const searchParams = new URLSearchParams(normalizeEmbedParams(params));
|
||||
paramString = '?' + searchParams.toString();
|
||||
paramString = searchParams.toString() === '' ? '' : '?' + searchParams.toString();
|
||||
}
|
||||
|
||||
const iframeCode = [
|
||||
|
Loading…
Reference in New Issue
Block a user