-
Notifications
You must be signed in to change notification settings - Fork 7
/
Disqus.vue
24 lines (24 loc) · 814 Bytes
/
Disqus.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<template>
<div id="disqus_thread"></div>
</template>
<script>
export default {
mounted() {
console.log("Hello!")
try {
let disqus_config = function () {
this.page.url = location.origin;
this.page.identifier = location.pathname;
};
(function () {
let d = document, s = d.createElement('script');
s.src = 'https://limdongjin.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
} catch (e) {
// some error
}
}
}
</script>