From 4188adae28a95efc361f00873589beb138514f11 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Fri, 23 Oct 2020 21:37:22 -0400 Subject: [PATCH] Rename index to profileIndex for clarity (#952) --- ext/bg/js/settings/profile-conditions-ui.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/bg/js/settings/profile-conditions-ui.js b/ext/bg/js/settings/profile-conditions-ui.js index 9438a0ec..4494e51a 100644 --- a/ext/bg/js/settings/profile-conditions-ui.js +++ b/ext/bg/js/settings/profile-conditions-ui.js @@ -75,7 +75,7 @@ class ProfileConditionsUI { return this._settingsController; } - get index() { + get profileIndex() { return this._settingsController.profileIndex; } @@ -202,7 +202,7 @@ class ProfileConditionsUI { getPath(property) { property = (typeof property === 'string' ? `.${property}` : ''); - return `profiles[${this.index}]${property}`; + return `profiles[${this.profileIndex}]${property}`; } createKeyboardMouseInputField(inputNode, mouseButton) {