mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-29 10:09:17 +02:00
refac
This commit is contained in:
@@ -269,7 +269,7 @@
|
|||||||
src={proxyUrl}
|
src={proxyUrl}
|
||||||
title="Port {port} preview"
|
title="Port {port} preview"
|
||||||
class="w-full h-full border-0 bg-white"
|
class="w-full h-full border-0 bg-white"
|
||||||
sandbox="allow-scripts{($settings?.terminalPreviewAllowSameOrigin ?? true)
|
sandbox="allow-scripts{($settings?.terminalPreviewAllowSameOrigin ?? false)
|
||||||
? ' allow-same-origin'
|
? ' allow-same-origin'
|
||||||
: ''} allow-forms allow-popups allow-modals allow-downloads"
|
: ''} allow-forms allow-popups allow-modals allow-downloads"
|
||||||
on:load={onIframeLoad}
|
on:load={onIframeLoad}
|
||||||
|
|||||||
@@ -109,7 +109,7 @@
|
|||||||
let iframeSandboxAllowSameOrigin = false;
|
let iframeSandboxAllowSameOrigin = false;
|
||||||
let iframeSandboxAllowForms = true;
|
let iframeSandboxAllowForms = true;
|
||||||
let iframeSandboxAllowDownloads = true;
|
let iframeSandboxAllowDownloads = true;
|
||||||
let terminalPreviewAllowSameOrigin = true;
|
let terminalPreviewAllowSameOrigin = false;
|
||||||
|
|
||||||
let showManageFloatingActionButtonsModal = false;
|
let showManageFloatingActionButtonsModal = false;
|
||||||
let showManageImageCompressionModal = false;
|
let showManageImageCompressionModal = false;
|
||||||
@@ -311,7 +311,7 @@
|
|||||||
iframeSandboxAllowSameOrigin = currentSettings?.iframeSandboxAllowSameOrigin ?? false;
|
iframeSandboxAllowSameOrigin = currentSettings?.iframeSandboxAllowSameOrigin ?? false;
|
||||||
iframeSandboxAllowForms = currentSettings?.iframeSandboxAllowForms ?? true;
|
iframeSandboxAllowForms = currentSettings?.iframeSandboxAllowForms ?? true;
|
||||||
iframeSandboxAllowDownloads = currentSettings?.iframeSandboxAllowDownloads ?? true;
|
iframeSandboxAllowDownloads = currentSettings?.iframeSandboxAllowDownloads ?? true;
|
||||||
terminalPreviewAllowSameOrigin = currentSettings?.terminalPreviewAllowSameOrigin ?? true;
|
terminalPreviewAllowSameOrigin = currentSettings?.terminalPreviewAllowSameOrigin ?? false;
|
||||||
|
|
||||||
stylizedPdfExport = currentSettings?.stylizedPdfExport ?? true;
|
stylizedPdfExport = currentSettings?.stylizedPdfExport ?? true;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user