From a4550627af2968019ea4bb08ff1b0a66fa9d7615 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sat, 17 Oct 2020 21:38:29 -0400 Subject: Add a refresh function to GenericSettingsController (#929) --- ext/bg/js/settings/generic-setting-controller.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'ext') diff --git a/ext/bg/js/settings/generic-setting-controller.js b/ext/bg/js/settings/generic-setting-controller.js index cb49845a..132dc042 100644 --- a/ext/bg/js/settings/generic-setting-controller.js +++ b/ext/bg/js/settings/generic-setting-controller.js @@ -46,6 +46,10 @@ class GenericSettingController { this._settingsController.on('optionsChanged', this._onOptionsChanged.bind(this)); } + async refresh() { + await this._dataBinder.refresh(); + } + // Private _onOptionsChanged() { -- cgit v1.2.3