This is an automated email from the ASF dual-hosted git repository.

humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-ponymail-foal.git


The following commit(s) were added to refs/heads/master by this push:
     new 8728246  Update variable scopes and casing
8728246 is described below

commit 87282463823fff725be57aea6ef7cab000886364
Author: Daniel Gruno <[email protected]>
AuthorDate: Wed Nov 17 18:22:47 2021 +0100

    Update variable scopes and casing
---
 webui/js/source/base-http-extensions.js | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/webui/js/source/base-http-extensions.js 
b/webui/js/source/base-http-extensions.js
index 17a92aa..4ac52c3 100644
--- a/webui/js/source/base-http-extensions.js
+++ b/webui/js/source/base-http-extensions.js
@@ -17,17 +17,17 @@
 
 
 // URL calls currently 'in escrow'. This controls the spinny wheel animation
-var async_escrow = {}
-var async_maxwait = 250; // ms to wait before displaying spinner
-var async_status = 'clear';
-var async_cache = {}
+let async_escrow = {}
+const ASYNC_MAXWAIT = 250; // ms to wait before displaying spinner
+let async_status = 'clear';
+let async_cache = {}
 
 // Escrow spinner check
 async function escrow_check() {
     let now = new Date();
     let show_spinner = false;
-    for (var k in async_escrow) {
-        if ((now - async_escrow[k]) > async_maxwait) {
+    for (let k in async_escrow) {
+        if ((now - async_escrow[k]) > ASYNC_MAXWAIT) {
             show_spinner = true;
             break;
         }
@@ -64,7 +64,7 @@ async function escrow_check() {
 }
 
 async function async_snap(error) {
-    msg = await error.text();
+    let msg = await error.text();
     msg = msg.replace(/<.*?>/g, ""); // strip HTML tags
     if (error.status === 404) {
         msg += "\n\nYou may need to be logged in with additional permissions 
in order to view this resource.";
@@ -124,4 +124,4 @@ async function GET(url, callback, state) {
             async_snap(res);
         }
     }
-}
\ No newline at end of file
+}

Reply via email to