Skip to content
This repository has been archived by the owner on Dec 14, 2024. It is now read-only.

Commit

Permalink
Merge pull request #20 from OmegaRogue/pull-request-no-injection
Browse files Browse the repository at this point in the history
1.5.2
  • Loading branch information
theripper93 authored Jan 22, 2024
2 parents adaa84d + b192c11 commit e056cdc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/renderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ document.querySelector("#save-app-config").addEventListener("click", (e) => {
const backgroundColor = (closeUserConfig.querySelector("#background-color") as HTMLInputElement).value;
const textColor = (closeUserConfig.querySelector("#text-color") as HTMLInputElement).value;
const cachePath = (closeUserConfig.querySelector("#cache-path") as HTMLInputElement).value;
const autoCacheClear = (closeUserConfig.querySelector("#cache-path") as HTMLInputElement).checked;
const autoCacheClear = (closeUserConfig.querySelector("#clear-cache-on-close") as HTMLInputElement).checked;
const ignoreCertificateErrors = (closeUserConfig.querySelector("#insecure-ssl") as HTMLInputElement).checked;
const config = {
accentColor,
Expand Down Expand Up @@ -145,6 +145,12 @@ function applyAppConfig(config: AppConfig) {
(document.querySelector("#cache-path") as HTMLInputElement).value = config.cachePath;
window.api.setCachePath(config.cachePath);
}
if (config.ignoreCertificateErrors) {
(document.querySelector("#insecure-ssl") as HTMLInputElement).checked = config.ignoreCertificateErrors;
}
if (config.autoCacheClear) {
(document.querySelector("#clear-cache-on-close") as HTMLInputElement).checked = config.autoCacheClear;
}
}


Expand Down

0 comments on commit e056cdc

Please sign in to comment.