diff --git a/src/main.js b/src/main.js index 0d24963..c4cbdd1 100644 --- a/src/main.js +++ b/src/main.js @@ -43,7 +43,7 @@ function normalizeUrl(url) { if (!url.includes("http://") && !url.includes("https://")) { url = "https://" + url; } - if (url.charAt(url.length - 1) !== "/") { + if (url.at(-1) !== "/") { url = url + "/"; } return url;