Show webui version from server

This commit is contained in:
Igor Katson 2023-12-07 12:19:35 +00:00
parent a01a07464c
commit 25ca003b44
No known key found for this signature in database
GPG key ID: B4EC22B66D61A3F5
6 changed files with 39 additions and 19 deletions

View file

@ -786,7 +786,7 @@ function formatSecondsToTime(seconds: number): string {
// Run a function with initial interval, then run it forever with the interval that the
// callback returns.
// Returns a callback to clear it.
function customSetInterval(asyncCallback: () => Promise<number>, initialInterval: number): () => void {
export function customSetInterval(asyncCallback: () => Promise<number>, initialInterval: number): () => void {
let timeoutId: number;
let currentInterval: number = initialInterval;
@ -809,7 +809,7 @@ function customSetInterval(asyncCallback: () => Promise<number>, initialInterval
};
}
function loopUntilSuccess<T>(callback: () => Promise<T>, interval: number): () => void {
export function loopUntilSuccess<T>(callback: () => Promise<T>, interval: number): () => void {
let timeoutId: number;
const executeCallback = async () => {