summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorYukai Huang2016-10-13 14:03:02 +0800
committerYukai Huang2016-10-13 14:03:02 +0800
commit4713b4f2aacab5bbc6ed557bd3f382df3af962df (patch)
treef5f6946263ba9da0f6fe17d469bc59fb63f01434 /public
parent83be3465ccd4bdc43cdfc14f253c236e2f44379e (diff)
Fix syncscroll
Diffstat (limited to '')
-rw-r--r--public/js/syncscroll.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/js/syncscroll.js b/public/js/syncscroll.js
index 511c5000..a9cfb5a0 100644
--- a/public/js/syncscroll.js
+++ b/public/js/syncscroll.js
@@ -109,7 +109,8 @@ md.use(markdownitContainer, 'info', { render: renderContainer });
md.use(markdownitContainer, 'warning', { render: renderContainer });
md.use(markdownitContainer, 'danger', { render: renderContainer });
-var syncscroll = true;
+// FIXME: expose syncscroll to window
+window.syncscroll = true;
var preventSyncScrollToEdit = false;
var preventSyncScrollToView = false;