Update iframe sandbox attributes based on settings (#21529)
Co-authored-by: :o <52920416+gg0h@users.noreply.github.com>
This commit is contained in:
@@ -16,6 +16,7 @@
|
|||||||
import CheckCircle from '../icons/CheckCircle.svelte';
|
import CheckCircle from '../icons/CheckCircle.svelte';
|
||||||
import Image from './Image.svelte';
|
import Image from './Image.svelte';
|
||||||
import FullHeightIframe from './FullHeightIframe.svelte';
|
import FullHeightIframe from './FullHeightIframe.svelte';
|
||||||
|
import { settings } from '$lib/stores';
|
||||||
|
|
||||||
export let id: string = '';
|
export let id: string = '';
|
||||||
export let attributes: {
|
export let attributes: {
|
||||||
@@ -92,8 +93,8 @@
|
|||||||
src={embed}
|
src={embed}
|
||||||
{args}
|
{args}
|
||||||
allowScripts={true}
|
allowScripts={true}
|
||||||
allowForms={true}
|
allowForms={$settings?.iframeSandboxAllowForms ?? false}
|
||||||
allowSameOrigin={true}
|
allowSameOrigin={$settings?.iframeSandboxAllowSameOrigin ?? false}
|
||||||
allowPopups={true}
|
allowPopups={true}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user