summaryrefslogtreecommitdiff
path: root/modules/changes/changes.html
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2016-09-29 22:22:04 +0200
committertomsmeding <tom.smeding@gmail.com>2016-09-29 22:22:04 +0200
commit2cf9f0bd7018a536061ea277df3158bc846fe241 (patch)
tree71a7e93e495015312fcf251c81b86fc38ad21adc /modules/changes/changes.html
parente3f92a42c906db6dfd4d3e4e3dae709d3c27b808 (diff)
Fix timelineheader.firstChild being undefined
Diffstat (limited to 'modules/changes/changes.html')
-rw-r--r--modules/changes/changes.html3
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){