From 3a7db2c1bb6cc430c3c37f2508c406c427e0c7e9 Mon Sep 17 00:00:00 2001 From: XPoet Date: Mon, 26 Oct 2020 21:53:36 +0800 Subject: [PATCH] fix: fixed hide and visible header bug --- source/js/toc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/js/toc.js b/source/js/toc.js index 89424d9..018bf0a 100644 --- a/source/js/toc.js +++ b/source/js/toc.js @@ -37,7 +37,7 @@ window.addEventListener('DOMContentLoaded', () => { scrollTop: offset - 10, complete: function () { setTimeout(() => { - if (ILS.utils.headerWrapper_dom.style.opacity !== '0') ILS.utils.headerWrapper_dom.style.opacity = '0' + ILS.utils.headerWrapper_dom.style.display = 'none'; }, 100) } });