From 3e415ea58792072850762bd52a51d62c4bcc56f3 Mon Sep 17 00:00:00 2001 From: AirboZH Date: Sat, 13 Apr 2024 05:32:21 +0800 Subject: [PATCH] fix: magnificPopup js error --- src/js/modules/components/img-popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/modules/components/img-popup.js b/src/js/modules/components/img-popup.js index dcfc96f..d94c993 100644 --- a/src/js/modules/components/img-popup.js +++ b/src/js/modules/components/img-popup.js @@ -8,7 +8,7 @@ import {preImg} from "../../patch/pre-img"; export function imgPopup() { preImg(); - if ($('.popup') <= 0) { + if ($(".popup").length <= 0) { return; }