mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-29 00:26:10 +03:00
Add try-catch for a plugin
This commit is contained in:
parent
3b1b2d6d23
commit
e059b8982e
@ -70,15 +70,19 @@
|
||||
debugger;
|
||||
}
|
||||
|
||||
const currentIncrement = self.filterIncrement;
|
||||
for (let i = 0; i < processors.length; i++) {
|
||||
if (self.filterIncrement !== currentIncrement) {
|
||||
break;
|
||||
try {
|
||||
const currentIncrement = self.filterIncrement;
|
||||
for (let i = 0; i < processors.length; i++) {
|
||||
if (self.filterIncrement !== currentIncrement) {
|
||||
break;
|
||||
}
|
||||
await processors[i](contextCopy);
|
||||
}
|
||||
await processors[i](contextCopy);
|
||||
}
|
||||
|
||||
await tile.setData(contextCopy, 'context2d');
|
||||
await tile.setData(contextCopy, 'context2d');
|
||||
} catch (e) {
|
||||
// pass, this is error caused by canvas being destroyed & replaced
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user