Don’t change the page title if we are focussed.
[Sone.git] / src / main / resources / static / javascript / sone.js
index 472df5a..e07c51e 100644 (file)
@@ -690,9 +690,11 @@ function resetActivity() {
 }
 
 function setActivity() {
-       title = document.title;
-       if (title.indexOf('(') != 0) {
-               document.title = "(!) " + title;
+       if (!focus) {
+               title = document.title;
+               if (title.indexOf('(') != 0) {
+                       document.title = "(!) " + title;
+               }
        }
 }