Change the way server address defaults are handled.

This commit is contained in:
Ajay Ramachandran
2020-02-08 21:30:57 -05:00
parent 62653705ff
commit 6f03c68fdc
3 changed files with 5 additions and 12 deletions

View File

@@ -1,3 +1,5 @@
import * as CompileConfig from "../config.json";
interface SBConfig {
userID: string,
sponsorTimes: SBMap<string, any>,
@@ -20,7 +22,7 @@ interface SBConfig {
invidiousUpdateInfoShowCount: number,
autoUpvote: boolean,
supportInvidious: false,
customServerAddress: string,
serverAddress: string,
minDuration: number
}
@@ -114,7 +116,7 @@ var Config: SBObject = {
invidiousUpdateInfoShowCount: 0,
autoUpvote: true,
supportInvidious: false,
customServerAddress: null,
serverAddress: CompileConfig.serverAddress,
minDuration: 0
},
localConfig: null,