Skip to content

Commit 041b33e

Browse files
njleonzhangQingWei-Li
authored andcommitted
fix: disqus plugin issue (#318)
* fix issue disqus plugin issue fix #317, disqus plugin make page refresh continuously. * Update disqus.js
1 parent b34a937 commit 041b33e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/plugins/disqus.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
location.href = location.href.replace('/-/', '/#/')
1+
const fixedPath = location.href.replace('/-/', '/#/')
2+
if (fixedPath != location.href) {
3+
location.href = fixedPath
4+
}
25

36
function install (hook, vm) {
47
const dom = Docsify.dom

0 commit comments

Comments
 (0)