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

sebb 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 d24b301  Use strict as early as possible
d24b301 is described below

commit d24b301a4332d4ad676b99d0007477dc7c957350
Author: Sebb <[email protected]>
AuthorDate: Thu Nov 18 15:37:08 2021 +0000

    Use strict as early as possible
---
 webui/js/source/aavariables.js          | 5 ++++-
 webui/js/source/base-http-extensions.js | 2 --
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/webui/js/source/aavariables.js b/webui/js/source/aavariables.js
index 79c839c..620bbe3 100644
--- a/webui/js/source/aavariables.js
+++ b/webui/js/source/aavariables.js
@@ -15,6 +15,9 @@
  limitations under the License.
  */
 
+ /* jshint -W097 */
+'use strict';
+
 const PONYMAIL_VERSION = "1.0.1"; // Current version of Pony Mail Foal
 
 let apiURL = ''; // external API URL. Usually left blank.
@@ -36,7 +39,7 @@ let current_listmode = 'threaded';
 let ponymail_max_nesting = 10; // max nesting level before unthreading to save 
space
 
 // thread state
-let current_email_idx = undefined;
+let current_email_idx;
 let chatty_layout = true;
 let ponymail_date_format = {
     weekday: 'long',
diff --git a/webui/js/source/base-http-extensions.js 
b/webui/js/source/base-http-extensions.js
index d70d34a..54789aa 100644
--- a/webui/js/source/base-http-extensions.js
+++ b/webui/js/source/base-http-extensions.js
@@ -15,8 +15,6 @@
  limitations under the License.
  */
 
-'use strict';
-
 // URL calls currently 'in escrow'. This controls the spinny wheel animation
 let async_escrow = {}
 const ASYNC_MAXWAIT = 250; // ms to wait before displaying spinner

Reply via email to