解决页脚友联bug

This commit is contained in:
1152958806@qq.com 2023-08-31 23:51:41 +08:00
parent 7767c5ee5d
commit 3c196c0cdb
4 changed files with 22 additions and 27 deletions

View File

@ -432,7 +432,7 @@ document.addEventListener("DOMContentLoaded", () => {
// flink 友链标签
customElements.define(
"hao-flink",
class HaoGalleryGroup extends HTMLElement {
class HaoFlink extends HTMLElement {
constructor() {
super();
this.options = {

View File

@ -78,6 +78,9 @@ var heo = {
}
htmlText += `<a class='footer-item' href='${linksUrl}'>更多</a>`
document.getElementById("friend-links-in-footer").innerHTML = htmlText;
if(document.getElementById("friend-links-in-footer")){
document.getElementById("friend-links-in-footer").innerHTML = htmlText;
}
},
//禁止图片右键单击

View File

@ -859,13 +859,8 @@ document.addEventListener('pjax:send', function () {
heo.showLoading();
}
})
document.addEventListener('DOMContentLoaded', function () {
//页脚友联
if(GLOBAL_CONFIG.isFriendLinksInFooter){
heo.addFriendLinksInFooter()
}
heo.reflashEssayWaterFall()
})

View File

@ -220,10 +220,7 @@
removeLoading();
}
//页脚友联
if(GLOBAL_CONFIG.isFriendLinksInFooter){
heo.addFriendLinksInFooter()
}
GLOBAL_CONFIG.isFriendLinksInFooter && heo.addFriendLinksInFooter()
//音乐页面切换歌曲调用
if(GLOBAL_CONFIG.isMusic){
heo.changeMusicBg(false);