potentially fixes #823

This commit is contained in:
psychobunny
2014-02-10 14:05:09 -05:00
parent 83a201acce
commit 8c2611aeb5

View File

@@ -444,7 +444,11 @@ var socket,
clearInterval(titleObj.interval);
}
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);
} else {
if (titleObj.interval) {