mirror of
https://github.com/docsifyjs/docsify.git
synced 2025-12-08 19:55:52 +00:00
fix: disqus plugin issue (#318)
* fix issue disqus plugin issue fix #317, disqus plugin make page refresh continuously. * Update disqus.js
This commit is contained in:
parent
b34a9375c3
commit
041b33e967
@ -1,4 +1,7 @@
|
||||
location.href = location.href.replace('/-/', '/#/')
|
||||
const fixedPath = location.href.replace('/-/', '/#/')
|
||||
if (fixedPath != location.href) {
|
||||
location.href = fixedPath
|
||||
}
|
||||
|
||||
function install (hook, vm) {
|
||||
const dom = Docsify.dom
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user