diff --git a/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/App.kt b/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/App.kt index 81cf098..889868f 100644 --- a/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/App.kt +++ b/modules/web-map/src/main/kotlin/dev/adamko/kafkatorio/webmap/App.kt @@ -67,18 +67,17 @@ class App( .filterIsInstance() .map { img -> val imgSrc = img.src.substringBeforeLast('?') - println("fetching $imgSrc") +// println("fetching $imgSrc") - var newImg : Image? = Image() + var newImg: Image? = Image() newImg!!.onload = { window.requestAnimationFrame { - println("image loaded ${newImg!!.src}") +// println("image loaded ${newImg!!.src}") img.setAttribute("dynamic-reload", "true") img.src = newImg!!.src newImg = null // try to encourage garbage collection - Unit } } newImg!!.src = imgSrc //+ "?t=${currentTimeMillis()}"