Skip to content

Commit

Permalink
Fixed UA parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
matafokka authored Dec 18, 2020
1 parent d35d86a commit 7f4bd7d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/LeafletAdvancedLayerSystem/System.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ let tablets = ["tablet", "ipad", "playbook", "silk"];
let devices = [mobiles, tablets];
let isTablet = false;
for (let device of devices) {
for (let string of mobiles) {
for (let string of device) {
if (ua.includes(string)) {
L.ALS.deviceType = isTablet ? "tablet" : "phone";
break;
Expand Down Expand Up @@ -575,4 +575,4 @@ L.ALS.System = L.Control.extend({
});
},

});
});

0 comments on commit 7f4bd7d

Please sign in to comment.