mirror of
https://github.com/zadam/trilium.git
synced 2025-11-01 02:45:54 +01:00
fix sync
This commit is contained in:
@@ -320,10 +320,10 @@ function timeLimit(promise, limitMs) {
|
||||
return new Promise((res, rej) => {
|
||||
let resolved = false;
|
||||
|
||||
promise.then(() => {
|
||||
promise.then(result => {
|
||||
resolved = true;
|
||||
|
||||
res();
|
||||
res(result);
|
||||
});
|
||||
|
||||
setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user