Skip to content

Commit ea8afaf

Browse files
committed
Update filebrowser.js
1 parent e5b7595 commit ea8afaf

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

filebrowser.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1049,6 +1049,22 @@ async function checkPushDialogs() {
10491049

10501050
// hide dialog
10511051
dialogWrapper.classList.remove('visible');
1052+
1053+
// if on mobile,
1054+
// change status bar color
1055+
if (isMobile) {
1056+
1057+
if (body.classList.contains('expanded')) {
1058+
1059+
document.querySelector('meta[name="theme-color"]').content = '#1a1c24';
1060+
1061+
} else {
1062+
1063+
document.querySelector('meta[name="theme-color"]').content = '#313744';
1064+
1065+
}
1066+
1067+
}
10521068

10531069
// disable push buttons
10541070
sidebar.classList.add('forking');

0 commit comments

Comments
 (0)