aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/config.ts
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2020-02-08 22:19:07 -0500
committerAjay Ramachandran <[email protected]>2020-02-08 22:19:07 -0500
commit6159605afd7416566122f2aa42b18f9c94fbdb38 (patch)
tree23bb5d2e2d596fd1faf48886beb3e319a1975b5a /src/config.ts
parent51d2886f701b30c2255241af0037f4e939ecb849 (diff)
parentceae02426d5ac7e0ab2c50f7e5f12a94d877eef4 (diff)
downloadSponsorBlock-6159605afd7416566122f2aa42b18f9c94fbdb38.tar.gz
SponsorBlock-6159605afd7416566122f2aa42b18f9c94fbdb38.zip
Merge branch 'master' of https://github.com/ajayyy/SponsorBlock into typescript
# Conflicts: # public/_locales/en/messages.json # src/config.ts
Diffstat (limited to 'src/config.ts')
-rw-r--r--src/config.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/config.ts b/src/config.ts
index 1e56d5d6..cbb8d40f 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -1,3 +1,5 @@
+import * as CompileConfig from "../config.json";
+
interface SBConfig {
userID: string,
sponsorTimes: SBMap<string, any>,
@@ -21,6 +23,7 @@ interface SBConfig {
invidiousUpdateInfoShowCount: number,
autoUpvote: boolean,
supportInvidious: boolean,
+ serverAddress: string,
minDuration: number
}
@@ -115,6 +118,7 @@ var Config: SBObject = {
invidiousUpdateInfoShowCount: 0,
autoUpvote: true,
supportInvidious: false,
+ serverAddress: CompileConfig.serverAddress,
minDuration: 0
},
localConfig: null,