fix(server): request content empty due to CLS

This commit is contained in:
Elian Doran
2026-01-05 16:01:27 +02:00
parent 527f502083
commit f79af7b045

View File

@@ -3,8 +3,8 @@ import { getContext } from "@triliumnext/core/src/services/context";
type Callback = (...args: any[]) => any;
function init(callback: () => void) {
getContext().init(callback);
function init<T>(callback: () => T) {
return getContext().init(callback);
}
function wrap(callback: Callback) {