From: David ‘Bombe’ Roden Date: Thu, 25 Nov 2010 19:56:25 +0000 (+0100) Subject: Don’t change the page title if we are focussed. X-Git-Tag: 0.3.1-RC2~5 X-Git-Url: https://git.pterodactylus.net/?p=Sone.git;a=commitdiff_plain;h=39788815bb8b499128d895304b5aee707dfc3b9a Don’t change the page title if we are focussed. --- diff --git a/src/main/resources/static/javascript/sone.js b/src/main/resources/static/javascript/sone.js index 472df5a..e07c51e 100644 --- a/src/main/resources/static/javascript/sone.js +++ b/src/main/resources/static/javascript/sone.js @@ -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; + } } }