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 93e4b53 commit 74e43d5Copy full SHA for 74e43d5
index.js
@@ -44,13 +44,14 @@ export default defineComponent({
44
const _ = this.$el.appendChild(document.createElement('span'))
45
const _this = this
46
import(/* webpackMode: "eager" */ 'github-buttons').then(function (module) {
47
- if (_this.$refs._ == null) {
+ if (_this.$el.lastChild !== _) {
48
return
49
}
50
module.render(_.appendChild(_this.$refs._), function (el) {
51
- try {
52
- _.parentNode.replaceChild(el, _)
53
- } catch (_) {}
+ return
+ }
54
+ _.parentNode.replaceChild(el, _)
55
})
56
57
},
0 commit comments