Tweak active item in sidebar

This commit is contained in:
qingwei.li 2017-01-12 20:23:45 +08:00
commit 0a2e1ddf11
2 changed files with 11 additions and 2 deletions

View file

@ -17,7 +17,7 @@ const OPTIONS = merge({
basePath: '',
auto2top: false,
name: '',
nameLink: location.pathname
nameLink: window.location.pathname
}, window.$docsify)
const script = document.currentScript || [].slice.call(document.getElementsByTagName('script')).pop()