mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-10 16:05:49 +01:00
potentially fixes #823
This commit is contained in:
@@ -444,7 +444,11 @@ var socket,
|
|||||||
clearInterval(titleObj.interval);
|
clearInterval(titleObj.interval);
|
||||||
}
|
}
|
||||||
titleObj.interval = setInterval(function() {
|
titleObj.interval = setInterval(function() {
|
||||||
window.document.title = titleObj.titles[titleObj.titles.indexOf(window.document.title) ^ 1];
|
var title = titleObj.titles[titleObj.titles.indexOf(window.document.title) ^ 1];
|
||||||
|
|
||||||
|
if (title) {
|
||||||
|
window.document.title = title;
|
||||||
|
}
|
||||||
}, 2000);
|
}, 2000);
|
||||||
} else {
|
} else {
|
||||||
if (titleObj.interval) {
|
if (titleObj.interval) {
|
||||||
|
|||||||
Reference in New Issue
Block a user