mirror of
https://github.com/zadam/trilium.git
synced 2026-01-16 11:34:25 +01:00
fix(server): request content empty due to CLS
This commit is contained in:
parent
527f502083
commit
f79af7b045
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user