安全链接支持拦截 编辑器超链接卡片 风格的链接

This commit is contained in:
j m 2025-03-16 11:38:00 +08:00
parent 59208e20b7
commit 373ed196b4

View File

@ -559,7 +559,7 @@ const commonContext = {
if (!DreamConfig.enable_security_link || !DreamConfig.security_link_url || DreamConfig.security_link_url.length === 0) {
return
}
$(document).on('click', 'a, hyperlink-inline-card', (event) => {
$(document).on('click', 'a, hyperlink-inline-card, hyperlink-card', (event) => {
var href = $(event.currentTarget).attr('href')
var hostname = window.location.hostname
// 判断是否为下载链接