Add fallback reveal to twitter button

This commit is contained in:
Sam Carlton 2020-11-16 14:03:23 -06:00
parent b12daa87b1
commit 8f1ef36e2a

View file

@ -31,6 +31,12 @@ export default {
mounted () { mounted () {
// https://platform.twitter.com/widgets.js // https://platform.twitter.com/widgets.js
// Fallback reveal
setInterval(() => {
this.visible = true
}, 5000)
// the returned function, when called, stops tracking the target element in the // the returned function, when called, stops tracking the target element in the
// given viewport // given viewport
const unobserve = observeElementInViewport(this.$refs.follow, async (_, unobserve, expandZoneElem) => { const unobserve = observeElementInViewport(this.$refs.follow, async (_, unobserve, expandZoneElem) => {