refactor: remove more unused variables

This commit is contained in:
Max Baumann
2020-12-15 12:58:44 +01:00
parent 5d0559aebd
commit 7756a89960
3 changed files with 11 additions and 13 deletions

View File

@@ -276,7 +276,7 @@ function decodeStoredItem<T>(id: string, data: T): T | SBMap<string, SponsorTime
}
function configProxy(): any {
chrome.storage.onChanged.addListener((changes, namespace) => {
chrome.storage.onChanged.addListener((changes) => {
for (const key in changes) {
Config.localConfig[key] = decodeStoredItem(key, changes[key].newValue);
}
@@ -315,7 +315,7 @@ function configProxy(): any {
}
function fetchConfig(): Promise<void> {
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
chrome.storage.sync.get(null, function(items) {
Config.localConfig = <SBConfig> <unknown> items; // Data is ready
resolve();