diff options
author | Rasmus Andersson <rasmus@figma.com> | 2019-02-03 04:05:54 +0300 |
---|---|---|
committer | Rasmus Andersson <rasmus@figma.com> | 2019-02-03 04:05:54 +0300 |
commit | 118377c5ede8c869d0492b9f3fdd49a7c041a7af (patch) | |
tree | 6675a85430cc0447c9a7d9bdf6b2f91f57fad526 /docs/_includes | |
parent | 824df95754ae7fa0cf88dfef09b271a4897fda6d (diff) | |
download | inter-118377c5ede8c869d0492b9f3fdd49a7c041a7af.tar.xz |
website: improve autoreload-in-debug helper
Diffstat (limited to 'docs/_includes')
-rw-r--r-- | docs/_includes/autoreload-in-debug.html | 2 |
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; |