Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCommanderRoot <CommanderRoot@users.noreply.github.com>2022-05-03 15:52:45 +0300
committerGitHub <noreply@github.com>2022-05-03 15:52:45 +0300
commit56640ae815fbace78c62482711cb1733d26cee5e (patch)
tree18078e6b9ec3e8ffe7cc6ac28e4c8f0a309bce94 /plugins/Actions
parent34ea7bbfcbc5a79a5c7b675b8cd2134cdda74cbe (diff)
Replace deprecated String.prototype.substr() (#19111)
.substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
Diffstat (limited to 'plugins/Actions')
-rw-r--r--plugins/Actions/javascripts/actionsDataTable.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Actions/javascripts/actionsDataTable.js b/plugins/Actions/javascripts/actionsDataTable.js
index 05434e2773..9d6461f683 100644
--- a/plugins/Actions/javascripts/actionsDataTable.js
+++ b/plugins/Actions/javascripts/actionsDataTable.js
@@ -19,7 +19,7 @@
var currentLevelIndex = style.indexOf('level');
if (currentLevelIndex >= 0) {
- currentLevel = Number(style.substr(currentLevelIndex + 5, 1));
+ currentLevel = Number(style.slice(currentLevelIndex + 5, currentLevelIndex + 6));
}
return currentLevel;
}