Skip to content
Snippets Groups Projects
Verified Commit 42c7e220 authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

fix: error handling #234

parent 5c371b64
No related branches found
No related tags found
No related merge requests found
......@@ -112,14 +112,22 @@ class Updater extends Base {
for (const [, change] of Object.entries(diffResult)) {
promises.push(
new Promise((resolve) => {
new Promise((resolve, reject) => {
getWindow().requestAnimationFrame(() => {
try {
removeElement.call(this, change);
insertElement.call(this, change);
updateContent.call(this, change);
updateAttributes.call(this, change);
resolve();
} catch (error) {
reject(error);
}
});
}),
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment