Skip to content

Commit d102a85

Browse files
committed
Update utils.js
1 parent c13959a commit d102a85

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

utils.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,22 @@ function showDialog(confirmHandler, titleText, confirmText) {
174174
// show dialog
175175
dialogWrapper.classList.add('visible');
176176

177+
// if on mobile,
178+
// change status bar color
179+
if (isMobile) {
180+
181+
if (body.classList.contains('expanded')) {
182+
183+
document.querySelector('meta[name="theme-color"]').content = '#040405';
184+
185+
} else {
186+
187+
document.querySelector('meta[name="theme-color"]').content = '#07080a';
188+
189+
}
190+
191+
}
192+
177193
// add confirm button listener
178194
dialogConfirm.onclick = async (e) => {
179195

0 commit comments

Comments
 (0)