remove duplicate slash in push url

remove unnecessary regex escape
This commit is contained in:
Jakub Blažej 2021-12-25 14:13:17 +01:00
parent 92a064d09d
commit 20291427e3
2 changed files with 2 additions and 2 deletions

View file

@ -176,7 +176,7 @@ let indexHTML = "";
try { try {
indexHTML = fs.readFileSync("./dist/index.html").toString(); indexHTML = fs.readFileSync("./dist/index.html").toString();
indexHTML = indexHTML.replace(/<base href.*?>/, `<base href="${basePath}">`); indexHTML = indexHTML.replace(/<base href.*?\>/, `<base href="${basePath}">`);
} catch (e) { } catch (e) {
// "dist/index.html" is not necessary for development // "dist/index.html" is not necessary for development
if (process.env.NODE_ENV !== "development") { if (process.env.NODE_ENV !== "development") {

View file

@ -349,7 +349,7 @@ export default {
}, },
pushURL() { pushURL() {
return this.$root.baseURL + "/api/push/" + this.monitor.pushToken + "?msg=OK&ping="; return this.$root.baseURL + "api/push/" + this.monitor.pushToken + "?msg=OK&ping=";
}, },
bodyPlaceholder() { bodyPlaceholder() {