Skip to content

Commit

Permalink
refine
Browse files Browse the repository at this point in the history
  • Loading branch information
iclaud committed Nov 25, 2023
1 parent 3530b08 commit 7e67869
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions xExtension-ColorfulList/static/script.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
'use strict';
document.addEventListener('DOMContentLoaded', function () {
// Initial Colorize for situation where 'no new item changes triggered later' (https://github.com/FreshRSS/Extensions/issues/183)
colorize();
Expand All @@ -13,11 +12,11 @@ function monitorEntry(monitorCallback) {
for (const mutation of mutationsList) {
if (mutation.type === 'childList') {
monitorCallback(mutationsList);

Check warning on line 14 in xExtension-ColorfulList/static/script.js

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 4 tabs but found 16 spaces
};
};
};
}
}
}

Check warning on line 17 in xExtension-ColorfulList/static/script.js

View workflow job for this annotation

GitHub Actions / tests

Missing semicolon
const observer = new MutationObserver(callback);
if(targetNode){
if (targetNode){

Check warning on line 19 in xExtension-ColorfulList/static/script.js

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 1 tab but found 4 spaces

Check failure on line 19 in xExtension-ColorfulList/static/script.js

View workflow job for this annotation

GitHub Actions / tests

Missing space before opening brace
observer.observe(targetNode, config);

Check failure on line 20 in xExtension-ColorfulList/static/script.js

View workflow job for this annotation

GitHub Actions / tests

Mixed spaces and tabs
};

Check warning on line 21 in xExtension-ColorfulList/static/script.js

View workflow job for this annotation

GitHub Actions / tests

Expected indentation of 1 tab but found 4 spaces

Check failure on line 21 in xExtension-ColorfulList/static/script.js

View workflow job for this annotation

GitHub Actions / tests

Unnecessary semicolon
};

Check failure on line 22 in xExtension-ColorfulList/static/script.js

View workflow job for this annotation

GitHub Actions / tests

Unnecessary semicolon
Expand Down

0 comments on commit 7e67869

Please sign in to comment.