mirror of
https://github.com/status-im/codimd.git
synced 2025-01-27 07:45:14 +00:00
Fix published note won't scroll to hash on load
This commit is contained in:
parent
80ee507951
commit
64d1d2c04b
@ -18,6 +18,7 @@ var smoothHashScroll = extra.smoothHashScroll;
|
||||
var postProcess = extra.postProcess;
|
||||
var updateLastChange = extra.updateLastChange;
|
||||
var parseMeta = extra.parseMeta;
|
||||
var scrollToHash = extra.scrollToHash;
|
||||
var preventXSS = require('./render').preventXSS;
|
||||
|
||||
var markdown = $("#doc.markdown-body");
|
||||
@ -117,6 +118,7 @@ $(window).resize(function () {
|
||||
$(document).ready(function () {
|
||||
windowResize();
|
||||
generateScrollspy();
|
||||
setTimeout(scrollToHash, 0);
|
||||
//tooltip
|
||||
$('[data-toggle="tooltip"]').tooltip();
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user