diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/changes/changes.html | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/changes/changes.html b/modules/changes/changes.html index bd9b436..5dbcc6d 100644 --- a/modules/changes/changes.html +++ b/modules/changes/changes.html @@ -83,7 +83,8 @@ function makeURLtr(url){ ev.stopPropagation(); if(!confirm("Delete the following url?\n"+url))return; fetch("DELETE","/changes/url",url,function(status,body){ - if(document.getElementById("timelineheader").firstChild.nodeValue==url){ + var tlh=document.getElementById("timelineheader"); + if(tlh.firstChild&&tlh.firstChild.nodeValue==url){ document.getElementById("timelinecontainer").classList.remove("visible"); } if(status!=200){ |