清理标题闪烁

pull/23/head
taoshihan1991 4 years ago
parent 3c0f8efbb6
commit 26be19b45e

@ -186,6 +186,10 @@ GOFLY.showKefu=function (){
clearTimeout(_this.titleTimer); clearTimeout(_this.titleTimer);
document.title = _this.originTitle; document.title = _this.originTitle;
}); });
window.onfocus = function () {
clearTimeout(_this.titleTimer);
document.title = _this.originTitle;
};
} }
GOFLY.layerOpen=function (){ GOFLY.layerOpen=function (){
if (this.launchButtonFlag) return; if (this.launchButtonFlag) return;
@ -227,7 +231,7 @@ GOFLY.flashTitle=function () {
document.title = '【】' + this.originTitle; document.title = '【】' + this.originTitle;
} }
if (this.titleNum == 2) { if (this.titleNum == 2) {
document.title = '【你有一条消息】' + this.originTitle; document.title = '【new message】' + this.originTitle;
} }
this.titleTimer = setTimeout("GOFLY.flashTitle()", 500); this.titleTimer = setTimeout("GOFLY.flashTitle()", 500);
} }

Loading…
Cancel
Save