summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--public/js/pretty.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/public/js/pretty.js b/public/js/pretty.js
index ebdec2a9..6b551c17 100644
--- a/public/js/pretty.js
+++ b/public/js/pretty.js
@@ -1,4 +1,4 @@
-var extra = require('./extra')
+var extra = require('./extra');
var md = extra.md;
var finishView = extra.finishView;
var autoLinkify = extra.autoLinkify;
@@ -124,6 +124,10 @@ function scrollToBottom() {
}, 100, "linear");
}
+window.scrollToTop = scrollToTop;
+window.scrollToBottom = scrollToBottom;
+
module.exports = {
- scrollToBottom: scrollToBottom
+ scrollToBottom: scrollToBottom,
+ scrollToTop: scrollToTop
}