1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-28 07:56:37 +01:00

Added ${config.base} when calling /api/logs?id=... (#582)

Co-authored-by: Bart Meuris <bart@mebasys.com>
This commit is contained in:
Bart Meuris
2020-07-17 18:02:14 +02:00
committed by GitHub
parent 9ae8b08725
commit 58fad3d105

View File

@@ -62,7 +62,7 @@ export default {
const delta = to - last;
const from = new Date(to.getTime() + delta);
const logs = await (
await fetch(`/api/logs?id=${this.id}&from=${from.toISOString()}&to=${to.toISOString()}`)
await fetch(`${config.base}/api/logs?id=${this.id}&from=${from.toISOString()}&to=${to.toISOString()}`)
).text();
if (logs) {
const newMessages = logs