aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/config.ts
diff options
context:
space:
mode:
authorOfficial Noob <[email protected]>2020-02-04 23:29:11 +0000
committerGitHub <[email protected]>2020-02-04 23:29:11 +0000
commit1c17464c94265e9a4f9fa0f43c5890c650c43169 (patch)
treef3ec2819caeaf7c01b4943d3e538c67fb54640a3 /src/config.ts
parent8896c5707a2e430fb331c1823d8d05f5da76120f (diff)
downloadSponsorBlock-1c17464c94265e9a4f9fa0f43c5890c650c43169.tar.gz
SponsorBlock-1c17464c94265e9a4f9fa0f43c5890c650c43169.zip
config => defaults
Diffstat (limited to 'src/config.ts')
-rw-r--r--src/config.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/config.ts b/src/config.ts
index ddf13fff..411c9732 100644
--- a/src/config.ts
+++ b/src/config.ts
@@ -138,9 +138,9 @@ function encodeStoredItem(data) {
* @param {*} data
*/
function decodeStoredItem(id: string, data) {
- if(!Config.localConfig[id]) return data;
+ if(!Config.defaults[id]) return data;
- if(Config.localConfig[id] instanceof SBMap) {
+ if(Config.defaults[id] instanceof SBMap) {
try {
if(!Array.isArray(data)) return data;
return new SBMap(id, data);