diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2021-01-14 19:14:29 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-14 19:14:29 -0500 |
commit | 39741bf1d2336091a4d3592ea9ad037ef1f47f79 (patch) | |
tree | ef1c4462c3859e0d073644b7debe4f1db0f6f887 /ext/bg/js/settings | |
parent | c1e4741f22a017501f921ecc111b68fae35d0209 (diff) |
Convert getDefaultOptions to a utility function (#1235)
Diffstat (limited to 'ext/bg/js/settings')
-rw-r--r-- | ext/bg/js/settings/settings-controller.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/bg/js/settings/settings-controller.js b/ext/bg/js/settings/settings-controller.js index c8b21e21..107e8004 100644 --- a/ext/bg/js/settings/settings-controller.js +++ b/ext/bg/js/settings/settings-controller.js @@ -17,6 +17,7 @@ /* global * HtmlTemplateCollection + * OptionsUtil * api */ @@ -124,6 +125,13 @@ class SettingsController extends EventDispatcher { return this._templates.instantiateFragment(name); } + async getDefaultOptions() { + const optionsUtil = new OptionsUtil(); + await optionsUtil.prepare(); + const optionsFull = optionsUtil.getDefault(); + return optionsFull; + } + // Private _setProfileIndex(value) { |