summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);
}