forked from rDrama/rDrama
1
0
Fork 0

accomodate older PWAs

master
Aevann 2023-07-25 21:47:20 +03:00
parent 0f1a949996
commit 9bfad4d200
1 changed files with 1 additions and 1 deletions

View File

@ -384,7 +384,7 @@ function sort_table(t) {
}
}
const is_pwa = window.matchMedia('(display-mode: standalone)')['matches']
const is_pwa = window.matchMedia('(display-mode: standalone)')['matches'] || window.matchMedia('(display-mode: minimal-ui)')['matches']
if (is_pwa) {
const links = document.querySelectorAll('a[data-target="t"]');
for (const link of links) {