mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 03:16:11 +01:00
client-ts: Port services/app/ws
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import dayjs from "dayjs";
|
||||
|
||||
function reloadFrontendApp(reason: string) {
|
||||
function reloadFrontendApp(reason?: string) {
|
||||
if (reason) {
|
||||
logInfo(`Frontend app reload: ${reason}`);
|
||||
}
|
||||
@@ -301,7 +301,7 @@ function dynamicRequire(moduleName: string) {
|
||||
}
|
||||
}
|
||||
|
||||
function timeLimit<T>(promise: Promise<T>, limitMs: number, errorMessage: string) {
|
||||
function timeLimit<T>(promise: Promise<T>, limitMs: number, errorMessage?: string) {
|
||||
if (!promise || !promise.then) { // it's not actually a promise
|
||||
return promise;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user