Improve PWA detection

This commit is contained in:
grandeljay 2022-04-07 20:10:34 +02:00
parent 0ca354cfc3
commit 1a6e6ff31f

View file

@ -31,7 +31,7 @@ $(function() {
});
$('.ui.progress').progress();
var isPWA = window.matchMedia('(display-mode: standalone)').matches;
var isPWA = navigator.standalone || window.matchMedia('(display-mode: standalone)').matches;
if (isPWA) {
$('.ui.dropdown.channel').dropdown('set selected', 'stable');