summaryrefslogtreecommitdiff
path: root/public/js/index.js
diff options
context:
space:
mode:
authorYukai Huang2016-10-09 21:14:18 +0800
committerYukai Huang2016-10-09 21:14:18 +0800
commit8a254ea4f109db99bdc172ba2717997c4d5dd490 (patch)
treed32cb7f491ca323c15b992450c570f0f78174fe7 /public/js/index.js
parent53b5cbb89325f4acb239afb188c4bbabe1ea8189 (diff)
Fix scrollToTop/Buttom in preview
workaround
Diffstat (limited to '')
-rw-r--r--public/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index db76b745..7be03086 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -71,6 +71,7 @@ var clearMap = syncScroll.clearMap;
var syncScrollToEdit = syncScroll.syncScrollToEdit;
var syncScrollToView = syncScroll.syncScrollToView;
+require('./pretty');
var extra = require('./extra');
var md = extra.md;
var createtime = extra.createtime;
@@ -91,7 +92,6 @@ var scrollToHash = extra.scrollToHash;
var history = require('./history');
var writeHistory = history.writeHistory;
-var pretty = require('./pretty');
var renderer = require('./render');
var preventXSS = renderer.preventXSS;