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

commit f6ffdf67c9cc1cd8a27267a423575dd17c9bfc5f
Author: Sebb <[email protected]>
AuthorDate: Wed Jan 19 17:53:21 2022 +0000

    substr is deprecated (#205)
---
 webui/js/source/primer.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/webui/js/source/primer.js b/webui/js/source/primer.js
index 84902b4..e9a8d0a 100644
--- a/webui/js/source/primer.js
+++ b/webui/js/source/primer.js
@@ -93,7 +93,7 @@ function post_prime(state) {
 function parseURL(state) {
     console.log("Running ParseURL");
     console.log(state);
-    let bits = window.location.search.substr(1).split(":", 3);
+    let bits = window.location.search.substring(1).split(":", 3);
     let list = bits[0];
     let month = bits[1];
     let query = bits[2];
@@ -154,7 +154,7 @@ function parse_permalink() {
     let mid = decodeURIComponent(location.pathname.split('/').pop());
     // List-ID specified?
     // query needs decodeURIComponent with '+' conversion
-    const query = decodeURIComponent(location.search.substr(1).replace(/\+/g, 
' '));
+    const query = 
decodeURIComponent(location.search.substring(1).replace(/\+/g, ' '));
     let list_id = null;
     if (query.length) {
         if (query.match(/^<.+>$/)) {

Reply via email to