summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorRasmus Andersson <rasmus@figma.com>2019-02-03 04:05:54 +0300
committerRasmus Andersson <rasmus@figma.com>2019-02-03 04:05:54 +0300
commit118377c5ede8c869d0492b9f3fdd49a7c041a7af (patch)
tree6675a85430cc0447c9a7d9bdf6b2f91f57fad526 /docs
parent824df95754ae7fa0cf88dfef09b271a4897fda6d (diff)
downloadinter-118377c5ede8c869d0492b9f3fdd49a7c041a7af.tar.xz
website: improve autoreload-in-debug helper
Diffstat (limited to 'docs')
-rw-r--r--docs/_includes/autoreload-in-debug.html2
1 files changed, 1 insertions, 1 deletions
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;