Add try-catch for a plugin

This commit is contained in:
Aiosa 2024-11-07 12:22:18 +01:00
parent 3b1b2d6d23
commit e059b8982e

View File

@ -70,6 +70,7 @@
debugger;
}
try {
const currentIncrement = self.filterIncrement;
for (let i = 0; i < processors.length; i++) {
if (self.filterIncrement !== currentIncrement) {
@ -79,6 +80,9 @@
}
await tile.setData(contextCopy, 'context2d');
} catch (e) {
// pass, this is error caused by canvas being destroyed & replaced
}
}
};