Update packages/frontend/src/components/MkUrlPreview.vue

This commit is contained in:
syuilo 2023-11-03 19:44:03 +09:00 committed by GitHub
parent d8bb99ad49
commit 5c56bd6db5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
:style="player.width ? `padding: ${(player.height || 0) / player.width * 100}% 0 0` : `padding: ${(player.height || 0)}px 0 0`"
>
<iframe
v-if="player.url.startsWith('http://') || player.url?.startsWith('https://')"
v-if="player.url?.startsWith('http://') || player.url?.startsWith('https://')"
sandbox="allow-popups allow-scripts allow-storage-access-by-user-activation allow-same-origin"
scrolling="no"
:allow="player.allow.join(';')"