mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-10-15 05:40:47 +08:00
fix(notice): keep code-based dismissal internal
This commit is contained in:
@@ -526,7 +526,7 @@ export function hideNotice(id: number) {
|
||||
notifySubscribers()
|
||||
}
|
||||
|
||||
export function hideNoticesByCode(code: string) {
|
||||
function hideNoticesByCode(code: string) {
|
||||
notices
|
||||
.filter((notice) => notice.code === code)
|
||||
.forEach(({ id }) => hideNotice(id))
|
||||
|
||||
Reference in New Issue
Block a user