Sv443 1 год назад
Родитель
Сommit
45c726a5f2
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      src/config.ts

+ 2 - 1
src/config.ts

@@ -51,7 +51,8 @@ export function saveFeatureConf(featureConf: FeatureConfig) {
   return GM.setValue("betterytm-config", JSON.stringify(featureConf));
 }
 
-function setDefaultFeatConf() {
+/** Resets the featuresCache synchronously and the persistent features storage asynchronously to its default values */
+export function setDefaultFeatConf() {
   featuresCache = { ...defaultFeatures };
   return GM.setValue("betterytm-config", JSON.stringify(defaultFeatures));
 }