forked from mirror/misskey
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