Perf: remove redundant judgement

This commit is contained in:
Cell
2023-01-07 13:05:53 +08:00
parent b974fa56df
commit f0d54fe6d5
3 changed files with 2 additions and 5 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
-3
View File
@@ -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) => {