Skip to content

Commit 2aa9b20

Browse files
committed
Update utils.js
1 parent ef74c3d commit 2aa9b20

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

utils.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,9 @@ function showDialog(confirmHandler, titleText, confirmText, showOneButton = fals
177177
// show dialog
178178
dialogWrapper.classList.add('visible');
179179

180+
// if on desktop, hide sidebar toggle
181+
if (!isMobile) sidebarToggle.classList.add('dialog-visible');
182+
180183
// if on mobile,
181184
// change status bar color
182185
if (isMobile) {
@@ -220,6 +223,9 @@ function hideDialog() {
220223
// hide dialog
221224
dialogWrapper.classList.remove('visible');
222225

226+
// if on desktop, show sidebar toggle
227+
if (!isMobile) sidebarToggle.classList.remove('dialog-visible');
228+
223229
// if on mobile,
224230
// change status bar color
225231
if (isMobile) {

0 commit comments

Comments
 (0)