summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-09-08 19:36:15 -0400
committerGitHub <noreply@github.com>2020-09-08 19:36:15 -0400
commitab4dbacc4c36d6373e22f758eefdb7514dc7cdb9 (patch)
tree617e509ef1dbdf41efeb80811a44b69152870416
parent46af4c9da42af5fa3f3e523a56ebf916b593af86 (diff)
Move assignment of the operating system property (#786)
-rw-r--r--ext/bg/js/settings/profiles.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/bg/js/settings/profiles.js b/ext/bg/js/settings/profiles.js
index 6cd95d9c..a32c03d1 100644
--- a/ext/bg/js/settings/profiles.js
+++ b/ext/bg/js/settings/profiles.js
@@ -28,6 +28,9 @@ class ProfileController {
}
async prepare() {
+ const {platform: {os}} = await api.getEnvironmentInfo();
+ this._profileConditionsUI.os = os;
+
$('#profile-target').change(this._onTargetProfileChanged.bind(this));
$('#profile-name').change(this._onNameChanged.bind(this));
$('#profile-add').click(this._onAdd.bind(this));
@@ -47,9 +50,6 @@ class ProfileController {
// Private
async _onOptionsChanged() {
- const {platform: {os}} = await api.getEnvironmentInfo();
- this._profileConditionsUI.os = os;
-
const optionsFull = await this._settingsController.getOptionsFullMutable();
this._formWrite(optionsFull);
}