Improve PWA detection
This commit is contained in:
parent
0ca354cfc3
commit
1a6e6ff31f
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue