Scrub proxy from exported presets

Speed-up animations.
This commit is contained in:
Cohee 2023-08-19 21:13:37 +03:00
parent aef78c6d99
commit 5cecc9fbff
2 changed files with 5 additions and 1 deletions

View File

@ -751,7 +751,7 @@ let create_save = {
};
//animation right menu
let animation_duration = 250;
let animation_duration = 125;
let animation_easing = "ease-in-out";
let popup_type = "";
let bg_file_for_del = "";

View File

@ -2345,6 +2345,10 @@ async function onExportPresetClick() {
}
const preset = openai_settings[openai_setting_names[oai_settings.preset_settings_openai]];
delete preset.reverse_proxy;
delete preset.proxy_password;
const presetJsonString = JSON.stringify(preset, null, 4);
download(presetJsonString, oai_settings.preset_settings_openai, 'application/json');
}