From 118377c5ede8c869d0492b9f3fdd49a7c041a7af Mon Sep 17 00:00:00 2001 From: Rasmus Andersson Date: Sat, 2 Feb 2019 17:05:54 -0800 Subject: website: improve autoreload-in-debug helper --- docs/_includes/autoreload-in-debug.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') diff --git a/docs/_includes/autoreload-in-debug.html b/docs/_includes/autoreload-in-debug.html index 13840defa..fa29294b0 100644 --- a/docs/_includes/autoreload-in-debug.html +++ b/docs/_includes/autoreload-in-debug.html @@ -29,7 +29,7 @@ function check() { //console.log('current_etag:', current_etag, 'found_etag:', found_etag); if (current_etag === null) { current_etag = found_etag; - } else if (found_etag !== current_etag) { + } else if (found_etag && found_etag !== current_etag) { document.location.search = '?etag=' + encodeURIComponent(found_etag) + '&scrolly=' + window.scrollY; -- cgit v1.2.3