mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-05 17:04:46 +00:00
remove duplicate slash in push url
remove unnecessary regex escape
This commit is contained in:
parent
92a064d09d
commit
20291427e3
2 changed files with 2 additions and 2 deletions
|
@ -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") {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Add table
Reference in a new issue