getElementById returns null on failure
This commit is contained in:
parent
400f3baee9
commit
168d7ae9fc
@ -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
|
||||
|
Reference in New Issue
Block a user