From 56e18cc5a1a0e70f3ccd83ebf5a1cc8952223a82 Mon Sep 17 00:00:00 2001 From: dev01 Date: Wed, 7 Jun 2023 14:02:38 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=89=8D=E5=8F=B0]=20notice=20=E5=91=8A?= =?UTF-8?q?=E8=AD=A6=E5=8D=A1=E7=89=87=E7=A8=8B=E5=BA=8F=E8=AA=BF=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Frontend/js/yourteam/plugins/yt-notice/yt-notice.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Frontend/js/yourteam/plugins/yt-notice/yt-notice.js b/Frontend/js/yourteam/plugins/yt-notice/yt-notice.js index 216c6b9..8114493 100644 --- a/Frontend/js/yourteam/plugins/yt-notice/yt-notice.js +++ b/Frontend/js/yourteam/plugins/yt-notice/yt-notice.js @@ -190,7 +190,7 @@ class YTNoticeBlock { checkCanShow = function (notice = null) { let lastNoticeOffset = $(this.noticeContainer).find(".toast").last().offset(); if ($(this.noticeContainer).find(".toast").last().length == 0) { - return true; + return notice.canShow; } if ($(notice.obj.container).is(":visible")) {