From 8deead61491736a2d7cd7cfd4ff9c0ba9bcb6beb Mon Sep 17 00:00:00 2001 From: Brett Date: Tue, 20 Aug 2024 06:06:57 -0500 Subject: [PATCH] Update belchertown.js.tmpl - new_radar_image When using Aeris API, the radar API does not like the added variables. --- skins/Belchertown/js/belchertown.js.tmpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/skins/Belchertown/js/belchertown.js.tmpl b/skins/Belchertown/js/belchertown.js.tmpl index a9a41879..6a51cec5 100644 --- a/skins/Belchertown/js/belchertown.js.tmpl +++ b/skins/Belchertown/js/belchertown.js.tmpl @@ -1542,7 +1542,8 @@ function ajaximages(section = false, reload_timer_interval_seconds = false) { // Reload images if (document.querySelectorAll(".radar-map img").length > 0) { var radar_img = document.querySelectorAll(".radar-map img")[0].src; - var new_radar_img = radar_img + "&t=" + Math.floor(Math.random() * 999999999); + //var new_radar_img = radar_img + "&t=" + Math.floor(Math.random() * 999999999); + var new_radar_img = radar_img; document.querySelectorAll(".radar-map img")[0].src = new_radar_img; //var radar_html = jQuery('.radar-map').children('img').attr('src').split('?')[0] // Get the img src and remove everything after "?" so we don't stack ?'s onto the image during updates //jQuery('.radar-map').children('img').attr('src', radar_html + "?" + Math.floor(Math.random() * 999999999));