Skip to content

Node.js based forum software built for the modern web

potentially fixes #823

psychobunny8c2611aeb503
diff --git a/public/src/app.js b/public/src/app.js
index 7f79031b20..dd738fe8eb 100644
--- a/public/src/app.js
+++ b/public/src/app.js
@@ -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) {