解决页脚友联bug
This commit is contained in:
parent
7767c5ee5d
commit
3c196c0cdb
|
@ -432,7 +432,7 @@ document.addEventListener("DOMContentLoaded", () => {
|
|||
// flink 友链标签
|
||||
customElements.define(
|
||||
"hao-flink",
|
||||
class HaoGalleryGroup extends HTMLElement {
|
||||
class HaoFlink extends HTMLElement {
|
||||
constructor() {
|
||||
super();
|
||||
this.options = {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
//禁止图片右键单击
|
||||
|
|
|
@ -859,13 +859,8 @@ document.addEventListener('pjax:send', function () {
|
|||
heo.showLoading();
|
||||
}
|
||||
|
||||
|
||||
})
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
//页脚友联
|
||||
if(GLOBAL_CONFIG.isFriendLinksInFooter){
|
||||
heo.addFriendLinksInFooter()
|
||||
}
|
||||
heo.reflashEssayWaterFall()
|
||||
})
|
||||
|
||||
|
|
|
@ -220,10 +220,7 @@
|
|||
removeLoading();
|
||||
}
|
||||
//页脚友联
|
||||
if(GLOBAL_CONFIG.isFriendLinksInFooter){
|
||||
heo.addFriendLinksInFooter()
|
||||
}
|
||||
|
||||
GLOBAL_CONFIG.isFriendLinksInFooter && heo.addFriendLinksInFooter()
|
||||
//音乐页面切换歌曲调用
|
||||
if(GLOBAL_CONFIG.isMusic){
|
||||
heo.changeMusicBg(false);
|
||||
|
|
Loading…
Reference in New Issue