From d4bb87b8ec9ce053ca8e28cc31905c0656d9a46a Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sat, 22 Oct 2016 15:42:56 +0800 Subject: [PATCH] Fix ReferenceError of scollToTop and scollToBottom in index.js --- public/js/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/public/js/index.js b/public/js/index.js index 4be11e8..1ba10e1 100644 --- a/public/js/index.js +++ b/public/js/index.js @@ -1915,6 +1915,9 @@ function scrollToBottom() { } } +window.scrollToTop = scrollToTop; +window.scrollToBottom = scrollToBottom; + var enoughForAffixToc = true; //scrollspy