Skip to content

Commit

Permalink
runatstartup option #6
Browse files Browse the repository at this point in the history
  • Loading branch information
Dadangdut33 committed Apr 12, 2022
1 parent 660e6c0 commit 3ead126
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion json/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,6 @@
}
},
"geoLocAPIKey": "",
"updateEvery_Hours": 4
"updateEvery_Hours": 4,
"runAtStartup": true
}
2 changes: 2 additions & 0 deletions src/main/handler/files.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ export interface configInterface {
};
geoLocAPIKey: string;
updateEvery_Hours: number;
runAtStartup: boolean;
}

export const initialConfig: configInterface = {
Expand Down Expand Up @@ -111,6 +112,7 @@ export const initialConfig: configInterface = {
},
geoLocAPIKey: '', // get from https://freegeoip.app/
updateEvery_Hours: 4,
runAtStartup: true,
};

export const cacheData: cacheDataInterface = {
Expand Down

0 comments on commit 3ead126

Please sign in to comment.