mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-17 19:11:52 +00:00
安全链接支持拦截 编辑器超链接卡片 风格的链接
This commit is contained in:
parent
59208e20b7
commit
373ed196b4
@ -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
|
||||
// 判断是否为下载链接
|
||||
|
Loading…
x
Reference in New Issue
Block a user