diff options
author | tomsmeding <tom.smeding@gmail.com> | 2016-09-29 22:22:04 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2016-09-29 22:22:04 +0200 |
commit | 2cf9f0bd7018a536061ea277df3158bc846fe241 (patch) | |
tree | 71a7e93e495015312fcf251c81b86fc38ad21adc | |
parent | e3f92a42c906db6dfd4d3e4e3dae709d3c27b808 (diff) |
Fix timelineheader.firstChild being undefined
-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){ |