summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorache <ache@ache.one>2022-05-04 00:53:14 +0200
committerache <ache@ache.one>2022-05-04 00:53:14 +0200
commit7c1ff52cd62803540b63fd66d03ecd2bb592f094 (patch)
treec813e718f9b97412b2b078cc80bbd6b72a813142
parentFix RSS link (diff)
Improove UX
-rw-r--r--src/js/zen.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/js/zen.js b/src/js/zen.js
index 301e21b..d897603 100644
--- a/src/js/zen.js
+++ b/src/js/zen.js
@@ -1,5 +1,5 @@
window.addEventListener('DOMContentLoaded', () => {
- let firstTime = window.location.pathname != '/';
+ let firstTime = window.location.pathname != '/' && window.pageYOffset < 800;
const toggleArrow = document.querySelector('#harr');
const initValue = document.body.style.getPropertyValue('--width_panel_bis');