mirror of
https://github.com/zadam/trilium.git
synced 2026-09-01 02:48:30 +02:00
fix(server): request content empty due to CLS
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user