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); } }); }