fix linter errors

This commit is contained in:
Jakub Blažej 2022-07-03 21:40:11 +02:00
parent d1caecde98
commit bd112b497a
2 changed files with 8 additions and 6 deletions

View file

@ -74,7 +74,7 @@ class UptimeKumaServer {
try {
this.indexHTML = fs.readFileSync("./dist/index.html").toString();
this.indexHTML = this.indexHTML.replace(/<base href.*?\>/, `<base href="${this.basePath}">`);
this.indexHTML = this.indexHTML.replace(/<base href.*?>/, `<base href="${this.basePath}">`);
} catch (e) {
// "dist/index.html" is not necessary for development
if (process.env.NODE_ENV !== "development") {
@ -83,7 +83,9 @@ class UptimeKumaServer {
}
}
this.io = new Server(this.httpServer, {path: this.basePath + "socket.io"});
this.io = new Server(this.httpServer, {
path: this.basePath + "socket.io"
});
}
async sendMonitorList(socket) {