@@ -324,17 +324,17 @@ function addNewRules() {
324
324
const observerInit = ( ) => {
325
325
observer . init ( {
326
326
name : "ccCss" ,
327
- observe : [ "childList " ] ,
327
+ types : [ "addedNodes " ] ,
328
328
selector : "[class]" ,
329
329
callback : ( mutation ) => {
330
- if ( parse != "false" ) initElements ( mutation . addedNodes ) ;
330
+ if ( parse != "false" ) initElements ( [ mutation . target ] ) ;
331
331
}
332
332
} ) ;
333
333
334
334
observer . init ( {
335
335
name : "ccCss" ,
336
- observe : [ "attributes" ] ,
337
- attributeName : [ "class" , "className" ] ,
336
+ types : [ "attributes" ] ,
337
+ attributeFilter : [ "class" , "className" ] ,
338
338
callback : ( mutation ) => {
339
339
if ( parse != "false" ) initElements ( [ mutation . target ] ) ;
340
340
}
@@ -343,20 +343,20 @@ const observerInit = () => {
343
343
344
344
observer . init ( {
345
345
name : "cssParseAddedNode" ,
346
- observe : [ "addedNodes" ] ,
346
+ types : [ "addedNodes" ] ,
347
347
selector : "link[parse], link[save], link[object]" ,
348
348
callback : ( mutation ) => {
349
- init ( mutation . target ) ;
349
+ init ( [ mutation . target ] ) ;
350
350
}
351
351
} ) ;
352
352
353
353
observer . init ( {
354
354
name : "cssParseattributes" ,
355
- observe : [ "attributes" ] ,
356
- attributeName : [ "parse" , "save" , "object" ] ,
355
+ types : [ "attributes" ] ,
356
+ attributeFilter : [ "parse" , "save" , "object" ] ,
357
357
selector : "link" ,
358
358
callback : ( mutation ) => {
359
- init ( mutation . target ) ;
359
+ init ( [ mutation . target ] ) ;
360
360
}
361
361
} ) ;
362
362
0 commit comments