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 {
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) {
// "dist/index.html" is not necessary for development
if (process.env.NODE_ENV !== "development") {

View File

@ -349,7 +349,7 @@ export default {
},
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() {