#310 - Server notice display is now opt-out

This commit is contained in:
Simon Cambier
2023-11-01 14:02:45 +01:00
parent 8355489bcd
commit 8832ce7b78
2 changed files with 20 additions and 2 deletions

View File

@@ -47,7 +47,9 @@ export function getServer() {
},
() => {
console.log(`Omnisearch - Started HTTP server on port ${port}`)
new Notice(`Omnisearch - Started HTTP server on port ${port}`)
if (settings.httpApiNotice) {
new Notice(`Omnisearch - Started HTTP server on port ${port}`)
}
}
)
@@ -61,7 +63,9 @@ export function getServer() {
close() {
server.close()
console.log(`Omnisearch - Terminated HTTP server`)
new Notice(`Omnisearch - Terminated HTTP server`)
if (settings.httpApiNotice) {
new Notice(`Omnisearch - Terminated HTTP server`)
}
},
}
}