forked from rDrama/rDrama
accomodate older PWAs
parent
0f1a949996
commit
9bfad4d200
|
@ -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) {
|
if (is_pwa) {
|
||||||
const links = document.querySelectorAll('a[data-target="t"]');
|
const links = document.querySelectorAll('a[data-target="t"]');
|
||||||
for (const link of links) {
|
for (const link of links) {
|
||||||
|
|
Loading…
Reference in New Issue