From 1216926fbdb6b897f4cf9d4cb25d3aaef86707d1 Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Thu, 19 Nov 2020 18:49:30 -0500 Subject: Hide profile button if only one profile exists (#1045) --- ext/bg/js/context-main.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext/bg/js') diff --git a/ext/bg/js/context-main.js b/ext/bg/js/context-main.js index e7cff04c..93eebe72 100644 --- a/ext/bg/js/context-main.js +++ b/ext/bg/js/context-main.js @@ -42,6 +42,8 @@ class DisplayController { this._setupOptions(primaryProfile); } + document.querySelector('.action-select-profile').hidden = (profiles.length <= 1); + this._updateProfileSelect(profiles, profileCurrent); setTimeout(() => { -- cgit v1.2.3