From cf143fbae108380c57fed0e0ee5ab8a8cdb909d8 Mon Sep 17 00:00:00 2001 From: Yusuke Furuta Date: Wed, 24 May 2023 08:24:56 +0900 Subject: [PATCH 1/2] update --- application/electron-app/src/main/main.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/application/electron-app/src/main/main.ts b/application/electron-app/src/main/main.ts index bd798a5..7e8f55e 100644 --- a/application/electron-app/src/main/main.ts +++ b/application/electron-app/src/main/main.ts @@ -46,6 +46,10 @@ const server = http.createServer(async (request, response) => { const content = await readContent(url) if (content) { + // Auto reload in 5 seconds + response.writeHead(200, { + Refresh: '5', + }) response.end(content) return } From f4521ca890b3df023b261030282cee683046e533 Mon Sep 17 00:00:00 2001 From: Yusuke Furuta Date: Thu, 25 May 2023 09:30:13 +0900 Subject: [PATCH 2/2] update --- application/electron-app/src/main/main.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/electron-app/src/main/main.ts b/application/electron-app/src/main/main.ts index 7e8f55e..ba7f758 100644 --- a/application/electron-app/src/main/main.ts +++ b/application/electron-app/src/main/main.ts @@ -46,9 +46,9 @@ const server = http.createServer(async (request, response) => { const content = await readContent(url) if (content) { - // Auto reload in 5 seconds + // For auto-reload response.writeHead(200, { - Refresh: '5', + Refresh: '3', }) response.end(content) return