close #215 catch delete rule errors

This commit is contained in:
Yanzhen Yu
2020-09-06 18:47:08 +08:00
parent f52b02f4b1
commit 1e4df37093

View File

@@ -715,7 +715,13 @@ export class Replayer {
if (d.removes) {
d.removes.forEach(({ index }) => {
styleSheet.deleteRule(index);
try {
styleSheet.deleteRule(index);
} catch (e) {
/**
* same as insertRule
*/
}
});
}
break;