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 #22 from OmegaRogue/pull-request-no-injection
Browse files Browse the repository at this point in the history
  • Loading branch information
theripper93 authored Feb 10, 2024
2 parents 525a297 + ed7e15e commit 7e6de91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,9 +231,10 @@ ipcMain.handle("app-version", () => app.getVersion())
function getAppConfig(): AppConfig {
try {
const json = fs.readFileSync(path.join(app.getAppPath(), "config.json")).toString();
console.log(json);
let appConfig = JSON.parse(json) as AppConfig;
const userData = getUserData();
appConfig = {...appConfig, ...userData.app};
appConfig = {...appConfig, ...userData.app, games: [...appConfig.games, ...userData.app.games]};
if (appConfig.ignoreCertificateErrors) {
app.commandLine.appendSwitch("ignore-certificate-errors");
}
Expand Down

0 comments on commit 7e6de91

Please sign in to comment.