aboutsummaryrefslogtreecommitdiffstats
path: root/view/theme
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-07-21 18:44:24 -0700
committerfriendica <info@friendica.com>2013-07-21 18:44:24 -0700
commit168d7ae9fc30bcbcae4b710da920cabe4cb84b9f (patch)
tree126b724aaa874135250a8a22e034a216c0e19736 /view/theme
parent400f3baee993b7d1a4cbcdc09b99d8224d8f2ac0 (diff)
downloadvolse-hubzilla-168d7ae9fc30bcbcae4b710da920cabe4cb84b9f.tar.gz
volse-hubzilla-168d7ae9fc30bcbcae4b710da920cabe4cb84b9f.tar.bz2
volse-hubzilla-168d7ae9fc30bcbcae4b710da920cabe4cb84b9f.zip
getElementById returns null on failure
Diffstat (limited to 'view/theme')
-rw-r--r--view/theme/redbasic/js/redbasic.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/view/theme/redbasic/js/redbasic.js b/view/theme/redbasic/js/redbasic.js
index eecd46d96..10ca4cfa3 100644
--- a/view/theme/redbasic/js/redbasic.js
+++ b/view/theme/redbasic/js/redbasic.js
@@ -90,7 +90,7 @@ $(document).ready(function(){
var doctitle = document.title;
function checkNotify() {
var notifyUpdateElem = document.getElementById('notify-update');
- if(typeof(notifyUpdateElem) != 'undefined') {
+ if(notifyUpdateElem !== null) {
if(notifyUpdateElem.innerHTML != "")
document.title = "("+notifyUpdateElem.innerHTML+") " + doctitle;
else