close #215 catch delete rule errors

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent dc782096cb
commit 51863e9ce8

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;