fix: 修复友情链接的头像带有 Medium Zoom 灯箱的问题

This commit is contained in:
Android
2021-07-05 03:14:48 +08:00
parent ad87304302
commit 32b83a0d81

View File

@@ -294,7 +294,7 @@ document.addEventListener('DOMContentLoaded', function () {
}
const addMediumZoom = () => {
const zoom = mediumZoom(document.querySelectorAll('#article-container :not(a)>img'))
const zoom = mediumZoom(document.querySelectorAll('#article-container :not(a):not(.flink-item-icon) > img'))
zoom.on('open', e => {
const photoBg = document.documentElement.getAttribute('data-theme') === 'dark' ? '#121212' : '#fff'
zoom.update({