refac
This commit is contained in:
@@ -109,6 +109,7 @@
|
||||
let iframeSandboxAllowSameOrigin = false;
|
||||
let iframeSandboxAllowForms = true;
|
||||
let iframeSandboxAllowDownloads = true;
|
||||
let terminalPreviewAllowSameOrigin = true;
|
||||
|
||||
let showManageFloatingActionButtonsModal = false;
|
||||
let showManageImageCompressionModal = false;
|
||||
@@ -310,6 +311,7 @@
|
||||
iframeSandboxAllowSameOrigin = currentSettings?.iframeSandboxAllowSameOrigin ?? false;
|
||||
iframeSandboxAllowForms = currentSettings?.iframeSandboxAllowForms ?? true;
|
||||
iframeSandboxAllowDownloads = currentSettings?.iframeSandboxAllowDownloads ?? true;
|
||||
terminalPreviewAllowSameOrigin = currentSettings?.terminalPreviewAllowSameOrigin ?? true;
|
||||
|
||||
stylizedPdfExport = currentSettings?.stylizedPdfExport ?? true;
|
||||
|
||||
@@ -1307,6 +1309,29 @@
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class={settingRowClass}>
|
||||
<div id="terminal-preview-allow-same-origin-label" class={settingLabelClass}>
|
||||
{$i18n.t('Terminal Preview Allow Same Origin')}
|
||||
</div>
|
||||
|
||||
<div class={settingControlClass}>
|
||||
<Switch
|
||||
ariaLabelledbyId="terminal-preview-allow-same-origin-label"
|
||||
tooltip={true}
|
||||
bind:state={terminalPreviewAllowSameOrigin}
|
||||
inherited={isDefaultSetting('terminalPreviewAllowSameOrigin')}
|
||||
on:change={() => {
|
||||
saveSettings({ terminalPreviewAllowSameOrigin });
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
<p class={settingDescriptionClass}>
|
||||
{$i18n.t('Allow terminal previews to access same-origin browser APIs.')}
|
||||
</p>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<div class={settingRowClass}>
|
||||
<div id="stylized-pdf-export-label" class={settingLabelClass}>
|
||||
|
||||
Reference in New Issue
Block a user