Automatically set PC Mode if unset (#2861)
* Automatically set PC Mode if unset based on the UserAgent * slight reduction Reduce flash usage a bit. Co-authored-by: Blaž Kristan <blaz@kristan-sp.si>
This commit is contained in:
parent
81d2a67948
commit
0cfda55b3a
@ -262,7 +262,7 @@ function onLoad()
|
||||
d.addEventListener("visibilitychange", handleVisibilityChange, false);
|
||||
size();
|
||||
gId("cv").style.opacity=0;
|
||||
if (localStorage.getItem('pcm') == "true") togglePcMode(true);
|
||||
if (localStorage.getItem('pcm') == "true" || (!/Mobi/.test(navigator.userAgent) && localStorage.getItem('pcm') == null)) togglePcMode(true);
|
||||
var sls = d.querySelectorAll('input[type="range"]');
|
||||
for (var sl of sls) {
|
||||
sl.addEventListener('touchstart', toggleBubble);
|
||||
|
Loading…
Reference in New Issue
Block a user