aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings/settings-controller.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-13 18:42:37 -0400
committerGitHub <noreply@github.com>2020-09-13 18:42:37 -0400
commit8b033a1650ff9425963c164aba1a744aada93f20 (patch)
treef746d7e834a1d39a40f931e16767b11b9d78cb58 /ext/bg/js/settings/settings-controller.js
parentd7c3c87d992924e6fc4f21a3da95ab992c43d905 (diff)
Profile controller refactor (#825)
* Add refresh function * Create new ProfileController class
Diffstat (limited to 'ext/bg/js/settings/settings-controller.js')
-rw-r--r--ext/bg/js/settings/settings-controller.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/bg/js/settings/settings-controller.js b/ext/bg/js/settings/settings-controller.js
index b741cd6f..d2656beb 100644
--- a/ext/bg/js/settings/settings-controller.js
+++ b/ext/bg/js/settings/settings-controller.js
@@ -47,6 +47,10 @@ class SettingsController extends EventDispatcher {
yomichan.on('optionsUpdated', this._onOptionsUpdated.bind(this));
}
+ async refresh() {
+ await this._onOptionsUpdatedInternal();
+ }
+
async save() {
await api.optionsSave(this._source);
}