aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/settings
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-10-28 20:47:20 -0400
committerGitHub <noreply@github.com>2020-10-28 20:47:20 -0400
commitcb76848df980b4245e9f5c0dee4eec4280ed645d (patch)
treea07124cc2b44ff468541600fb4d97a6407ac6ea1 /ext/bg/js/settings
parent890de095db4019e33bda4936dc32f85a8d99f20d (diff)
Fix profile creation not working on settings v1 (#968)
Diffstat (limited to 'ext/bg/js/settings')
-rw-r--r--ext/bg/js/settings/profile-controller.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/bg/js/settings/profile-controller.js b/ext/bg/js/settings/profile-controller.js
index 149238b1..286ce006 100644
--- a/ext/bg/js/settings/profile-controller.js
+++ b/ext/bg/js/settings/profile-controller.js
@@ -166,7 +166,9 @@ class ProfileController {
// Update state
const index = this._profiles.length;
this._profiles.push(newProfile);
- this._addProfileEntry(index);
+ if (this._profileEntriesSupported) {
+ this._addProfileEntry(index);
+ }
this._updateProfileSelectOptions();
// Modify settings