mirror of
https://ghfast.top/https://github.com/zsjy/halo-theme-dream2.0-plus.git
synced 2025-03-17 21:31:51 +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) {
|
if (!DreamConfig.enable_security_link || !DreamConfig.security_link_url || DreamConfig.security_link_url.length === 0) {
|
||||||
return
|
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 href = $(event.currentTarget).attr('href')
|
||||||
var hostname = window.location.hostname
|
var hostname = window.location.hostname
|
||||||
// 判断是否为下载链接
|
// 判断是否为下载链接
|
||||||
|
Loading…
x
Reference in New Issue
Block a user