From 7deb9c51971a303bc236ad2feeb341515c8a6fbe Mon Sep 17 00:00:00 2001 From: Tobias Speicher Date: Sat, 26 Mar 2022 14:10:07 +0100 Subject: [PATCH] refactor: replace deprecated String.prototype.substr() .substr() is deprecated so we replace it with .slice() which works similarily but isn't deprecated Signed-off-by: Tobias Speicher --- frontend/src/components/sidebar/sidebar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/components/sidebar/sidebar.vue b/frontend/src/components/sidebar/sidebar.vue index cb08674..50eb78e 100644 --- a/frontend/src/components/sidebar/sidebar.vue +++ b/frontend/src/components/sidebar/sidebar.vue @@ -83,7 +83,7 @@ return "https://github.com/molenzwiebel/OriannaBot/commit/" + GIT_COMMITHASH; }, gitCommit() { - return GIT_COMMITHASH.substr(0, 7); + return GIT_COMMITHASH.slice(0, 7); }, gitBranch() { return GIT_BRANCH;