mirror of
https://github.com/Esri/offline-editor-js.git
synced 2025-12-15 15:20:05 +00:00
added assert statement to detect if img is undefined
This commit is contained in:
parent
b9b5b550ce
commit
fd91127b2d
@ -91,6 +91,8 @@ define([
|
||||
var img = query("img[src="+tileid+"]")[0];
|
||||
var imgURL;
|
||||
|
||||
console.assert(typeof img != "undefined","undefined image detected");
|
||||
|
||||
if( success )
|
||||
{
|
||||
img.style.borderColor = "blue";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user