mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-09-02 19:52:40 +00:00
⚡ Perf: remove redundant judgement
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -828,9 +828,6 @@ class FixIt {
|
||||
}
|
||||
|
||||
initCommentLightGallery(comments, images) {
|
||||
if (!this.config.lightGallery) {
|
||||
return;
|
||||
}
|
||||
document.querySelectorAll(comments).forEach(($content) => {
|
||||
const $imgs = $content.querySelectorAll(images + ':not([lightgallery-loaded])');
|
||||
$imgs.forEach(($img) => {
|
||||
|
||||
Reference in New Issue
Block a user