mirror of
https://github.com/open-webui/open-webui.git
synced 2026-08-29 01:59:16 +02:00
refac
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user