mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-23 19:20:46 +01:00
paramsの中身がない場合は ?
がつかないように修正
This commit is contained in:
parent
153a25bd30
commit
610d7d59e6
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue