Skip to content

Commit

Permalink
fix: disqus plugin issue (#318)
Browse files Browse the repository at this point in the history
* fix issue disqus plugin issue

fix #317, disqus plugin make page refresh continuously.

* Update disqus.js
  • Loading branch information
njleonzhang authored and QingWei-Li committed Nov 30, 2017
1 parent b34a937 commit 041b33e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/plugins/disqus.js
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 041b33e

Please sign in to comment.