From 829c443f1f7460340258e3d25d93df19b4f292df Mon Sep 17 00:00:00 2001 From: Jesper Pedersen Date: Thu, 4 Apr 2024 07:57:14 +0200 Subject: [PATCH] 1029: Change var to const --- web/themes/custom/hoeringsportal/assets/js/hide_spinner.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/themes/custom/hoeringsportal/assets/js/hide_spinner.js b/web/themes/custom/hoeringsportal/assets/js/hide_spinner.js index 9fea04fa..7b6067b9 100644 --- a/web/themes/custom/hoeringsportal/assets/js/hide_spinner.js +++ b/web/themes/custom/hoeringsportal/assets/js/hide_spinner.js @@ -3,7 +3,7 @@ * Set timer for iframe. */ -var timer = setInterval(function () { +const timer = setInterval(function () { const element = document.querySelector('.node--type-hearing iframe') if (!element) { clearInterval(timer)