mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2025-06-28 06:12:08 +02:00
Replace string.contains() with string.indexOf() which is better supported.
This commit is contained in:
@ -137,7 +137,7 @@ L.Control.AutoUpdate = L.Control.extend({
|
||||
for (var i = 0; i < tiles.length; i++) {
|
||||
var img = tiles[i];
|
||||
var cl = img.getAttribute('class');
|
||||
if (!cl.contains('leaflet-tile-loaded')) {
|
||||
if (cl.indexOf('leaflet-tile-loaded') < 0) {
|
||||
continue;
|
||||
}
|
||||
var src = img.src;
|
||||
|
Reference in New Issue
Block a user