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:
@ -136,7 +136,7 @@ manualUpdateControl = L.easyButton('fa-refresh',
|
||||
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) {
|
||||
var src = img.src;
|
||||
var idx = src.lastIndexOf("#");
|
||||
if (idx >= 0) {
|
||||
|
Reference in New Issue
Block a user