From 57290fcb6a74fddef85afae40e9594bb3ff9b824 Mon Sep 17 00:00:00 2001
From: CommanderRoot <CommanderRoot@users.noreply.github.com>
Date: Wed, 23 Mar 2022 10:30:37 +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 <rootcommander@gmail.com>
---
 themes/vue/source/js/common.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/themes/vue/source/js/common.js b/themes/vue/source/js/common.js
index 84df3c985..f8ba438af 100644
--- a/themes/vue/source/js/common.js
+++ b/themes/vue/source/js/common.js
@@ -141,7 +141,7 @@
   function parseRawHash (hash) {
     // Remove leading hash
     if (hash.charAt(0) === '#') {
-      hash = hash.substr(1)
+      hash = hash.slice(1)
     }
 
     // Escape characters