From ab4dbacc4c36d6373e22f758eefdb7514dc7cdb9 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Tue, 8 Sep 2020 19:36:15 -0400 Subject: Move assignment of the operating system property (#786) --- ext/bg/js/settings/profiles.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext') 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); } -- cgit v1.2.3