优化代码
This commit is contained in:
parent
868f69f540
commit
8a3cb15a7c
|
@ -463,10 +463,7 @@
|
||||||
let list = document.querySelector('ul#pblist');
|
let list = document.querySelector('ul#pblist');
|
||||||
let MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
|
let MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
|
||||||
let observer = new MutationObserver((mutations) => {
|
let observer = new MutationObserver((mutations) => {
|
||||||
if (mutations.length > 0) {
|
t();
|
||||||
console.log(mutations)
|
|
||||||
t();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
|
|
||||||
observer.observe(list, {
|
observer.observe(list, {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user