aboutsummaryrefslogtreecommitdiff
path: root/src/background/repositories/setting.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/background/repositories/setting.js')
-rw-r--r--src/background/repositories/setting.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/background/repositories/setting.js b/src/background/repositories/setting.js
index d9c481d..6d48525 100644
--- a/src/background/repositories/setting.js
+++ b/src/background/repositories/setting.js
@@ -14,4 +14,10 @@ export default class SettingRepository {
update(value) {
return this.cache.set(CACHED_SETTING_KEY, value);
}
+
+ async setProperty(name, value) {
+ let current = await this.get();
+ current.properties[name] = value;
+ return this.update(current);
+ }
}