File tree 1 file changed +11
-9
lines changed 1 file changed +11
-9
lines changed Original file line number Diff line number Diff line change 58
58
methods: {
59
59
editPage (){
60
60
window .open (this .github , ' _blank' );
61
- this .$ga .event (' docs' ,' edit_page' );
61
+ this .$ga .event (' docs' , ' edit_page' );
62
62
},
63
63
issue (){
64
64
window .open (' https://github.com/bootstrap-vue/bootstrap-vue/issues/new' , ' _blank' );
65
- this .$ga .event (' docs' ,' open_issue' );
65
+ this .$ga .event (' docs' , ' open_issue' );
66
66
},
67
67
},
68
68
mounted (){
69
-
70
69
if (! document .disqus ) {
71
- let script = document .createElement (' script' );
72
- script .src = ' //bootstrap-vue.disqus.com/embed.js' ;
73
- script .setAttribute (' data-timestamp' , + new Date ());
74
- document .getElementById (' disqus_script' ).appendChild (script);
75
- document .disqus = true ;
70
+ let disqus_script = document .getElementById (' disqus_script' );
71
+ if (disqus_script) {
72
+ let script = document .createElement (' script' );
73
+ script .src = ' //bootstrap-vue.disqus.com/embed.js' ;
74
+ script .setAttribute (' data-timestamp' , + new Date ());
75
+ disqus_script .appendChild (script);
76
+ document .disqus = true ;
77
+ }
76
78
} else {
77
- DISQUS .reset ({reload: true });
79
+ if ( DISQUS ) DISQUS .reset ({reload: true });
78
80
}
79
81
}
80
82
}
You can’t perform that action at this time.
0 commit comments