mirror of
https://github.com/louislam/uptime-kuma.git
synced 2025-03-05 00:44:46 +00:00
fix linter errors
This commit is contained in:
parent
d1caecde98
commit
bd112b497a
2 changed files with 8 additions and 6 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue