mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
CKEditor 21
This commit is contained in:
parent
8a57960c6e
commit
95bbdb3b6b
2
libraries/ckeditor/ckeditor.js
vendored
2
libraries/ckeditor/ckeditor.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -328,6 +328,9 @@ function dynamicRequire(moduleName) {
|
||||
}
|
||||
|
||||
function timeLimit(promise, limitMs) {
|
||||
// better stack trace if created outside of promise
|
||||
const error = new Error('Process exceeded time limit ' + limitMs);
|
||||
|
||||
return new Promise((res, rej) => {
|
||||
let resolved = false;
|
||||
|
||||
@ -339,7 +342,7 @@ function timeLimit(promise, limitMs) {
|
||||
|
||||
setTimeout(() => {
|
||||
if (!resolved) {
|
||||
rej(new Error('Process exceeded time limit ' + limitMs));
|
||||
rej(error);
|
||||
}
|
||||
}, limitMs);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user