We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fd7d4e0 commit 7510f75Copy full SHA for 7510f75
src/plugins/disqus.js
@@ -23,7 +23,8 @@ function install (hook, vm) {
23
div.style = `width: ${main.clientWidth}px; margin: 0 auto 20px;`
24
dom.appendTo(dom.find('.content'), div)
25
26
- window.disqus_config = function () {
+ // eslint-disable-next-line
27
+ window.disqus_config = function() {
28
this.page.url = location.origin + '/-' + vm.route.path
29
this.page.identifier = vm.route.path
30
this.page.title = document.title
@@ -32,7 +33,7 @@ function install (hook, vm) {
32
33
34
hook.doneEach(_ => {
35
if (typeof window.DISQUS !== 'undefined') {
- DISQUS.reset({
36
+ window.DISQUS.reset({
37
reload: true,
38
config: function () {
39
0 commit comments