From 2de88e272c90fdab31869d657cecb819fa4ae946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20Kr=C3=BChlmann?= Date: Wed, 10 Dec 2025 15:51:59 +0100 Subject: [PATCH] Improve dev build --- src/main/resources/application.yml | 5 +++++ src/main/resources/static/js/admin.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 234f594..88c48f6 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -11,6 +11,11 @@ spring: import: optional:file:.env[.properties] application: name: imgfloat + devtools: + restart: + enabled: true + livereload: + enabled: true servlet: multipart: max-file-size: 256MB diff --git a/src/main/resources/static/js/admin.js b/src/main/resources/static/js/admin.js index ba773a6..56ca5cf 100644 --- a/src/main/resources/static/js/admin.js +++ b/src/main/resources/static/js/admin.js @@ -210,7 +210,7 @@ function connect() { }, (error) => { console.warn('WebSocket connection issue', error); if (typeof showToast === 'function') { - showToast('Live updates connection interrupted. Retrying may be necessary.', 'warning'); + setTimeout(() => showToast('Live updates connection interrupted. Retrying may be necessary.', 'warning'), 1000); } }); }