mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-28 05:27:35 +00:00
refac
This commit is contained in:
parent
0366f5d3d8
commit
f71e9570c0
2 changed files with 3 additions and 3 deletions
|
|
@ -269,7 +269,7 @@
|
|||
src={proxyUrl}
|
||||
title="Port {port} preview"
|
||||
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-forms allow-popups allow-modals allow-downloads"
|
||||
on:load={onIframeLoad}
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@
|
|||
let iframeSandboxAllowSameOrigin = false;
|
||||
let iframeSandboxAllowForms = true;
|
||||
let iframeSandboxAllowDownloads = true;
|
||||
let terminalPreviewAllowSameOrigin = true;
|
||||
let terminalPreviewAllowSameOrigin = false;
|
||||
|
||||
let showManageFloatingActionButtonsModal = false;
|
||||
let showManageImageCompressionModal = false;
|
||||
|
|
@ -311,7 +311,7 @@
|
|||
iframeSandboxAllowSameOrigin = currentSettings?.iframeSandboxAllowSameOrigin ?? false;
|
||||
iframeSandboxAllowForms = currentSettings?.iframeSandboxAllowForms ?? true;
|
||||
iframeSandboxAllowDownloads = currentSettings?.iframeSandboxAllowDownloads ?? true;
|
||||
terminalPreviewAllowSameOrigin = currentSettings?.terminalPreviewAllowSameOrigin ?? true;
|
||||
terminalPreviewAllowSameOrigin = currentSettings?.terminalPreviewAllowSameOrigin ?? false;
|
||||
|
||||
stylizedPdfExport = currentSettings?.stylizedPdfExport ?? true;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue