Skip to content

Commit 7510f75

Browse files
committed
fix lint
1 parent fd7d4e0 commit 7510f75

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/plugins/disqus.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ function install (hook, vm) {
2323
div.style = `width: ${main.clientWidth}px; margin: 0 auto 20px;`
2424
dom.appendTo(dom.find('.content'), div)
2525

26-
window.disqus_config = function () {
26+
// eslint-disable-next-line
27+
window.disqus_config = function() {
2728
this.page.url = location.origin + '/-' + vm.route.path
2829
this.page.identifier = vm.route.path
2930
this.page.title = document.title
@@ -32,7 +33,7 @@ function install (hook, vm) {
3233

3334
hook.doneEach(_ => {
3435
if (typeof window.DISQUS !== 'undefined') {
35-
DISQUS.reset({
36+
window.DISQUS.reset({
3637
reload: true,
3738
config: function () {
3839
this.page.url = location.origin + '/-' + vm.route.path

0 commit comments

Comments
 (0)