aboutsummaryrefslogtreecommitdiff
path: root/ext/mixed/js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-01-10 16:06:00 -0500
committerGitHub <noreply@github.com>2021-01-10 16:06:00 -0500
commit1614335bb005ee1b9df4c6f63725bc505dfb4588 (patch)
tree94a6d2fe00e2b07652a979f32c4b7f5ab809bf35 /ext/mixed/js
parentb1ce650aa733d665b6aa9870f182e72a44acebcf (diff)
Fix profile panel not being able to be closed due to hidden sidebar (#1220)
Diffstat (limited to 'ext/mixed/js')
-rw-r--r--ext/mixed/js/display-profile-selection.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/mixed/js/display-profile-selection.js b/ext/mixed/js/display-profile-selection.js
index 357a2a85..0a44392e 100644
--- a/ext/mixed/js/display-profile-selection.js
+++ b/ext/mixed/js/display-profile-selection.js
@@ -59,6 +59,7 @@ class DisplayProfileSelection {
_setProfilePanelVisible(visible) {
this._profilePanel.setVisible(visible);
this._profileButton.classList.toggle('sidebar-button-highlight', visible);
+ document.documentElement.dataset.profilePanelVisible = `${visible}`;
if (visible && this._profileListNeedsUpdate) {
this._updateProfileList();
}