mirror of
https://github.com/sissbruecker/linkding.git
synced 2026-02-27 22:43:15 +08:00
Include templates in live reload
This commit is contained in:
@@ -25,7 +25,7 @@ function connect() {
|
||||
const data = JSON.parse(event.data);
|
||||
console.log("[live-reload] File changed:", data);
|
||||
|
||||
if (data.file_path.endsWith(".css") || data.file_path.endsWith(".js")) {
|
||||
if (data.file_path.endsWith(".html") || data.file_path.endsWith(".css") || data.file_path.endsWith(".js")) {
|
||||
console.log("[live-reload] Asset changed, reloading page");
|
||||
window.location.reload();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user