mirror of
https://github.com/jerryc127/hexo-theme-butterfly.git
synced 2026-04-12 14:07:06 +08:00
fix: 使用 null 而不是空对象来正确判空
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
window.lazyLoadInstance && window.lazyLoadInstance.update()
|
||||
}
|
||||
|
||||
const linkData = !{JSON.stringify(site.data.link || {})}
|
||||
const linkData = !{JSON.stringify(site.data.link || null)}
|
||||
if ("!{page.flink_url}") {
|
||||
fetch("!{url_for(page.flink_url)}")
|
||||
.then(response => response.json())
|
||||
|
||||
Reference in New Issue
Block a user