mirror of
https://codeberg.org/PLG-Development/PLG-MuDiCS
synced 2026-07-06 00:47:09 +00:00
add recursive file handling
This commit is contained in:
@@ -2,13 +2,14 @@ import { get } from "svelte/store";
|
||||
import { displays, update_displays_with_map } from "./stores/displays"
|
||||
import { ping_ip } from "./api_handler";
|
||||
import type { Display } from "./types";
|
||||
import { change_file_path } from "./stores/files";
|
||||
import { change_file_path, update_all_display_files } from "./stores/files";
|
||||
|
||||
const update_display_status_interval_seconds = 20;
|
||||
|
||||
export function on_start() {
|
||||
update_all_display_status();
|
||||
setInterval(update_all_display_status, update_display_status_interval_seconds * 1000);
|
||||
update_all_display_files('/');
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user