From 8f1ef36e2aae5baf2acd204f5d673afadc197653 Mon Sep 17 00:00:00 2001 From: Sam Carlton Date: Mon, 16 Nov 2020 14:03:23 -0600 Subject: [PATCH] Add fallback reveal to twitter button --- components/twitter-follow.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/components/twitter-follow.vue b/components/twitter-follow.vue index 5cc2b39..5df709c 100644 --- a/components/twitter-follow.vue +++ b/components/twitter-follow.vue @@ -31,6 +31,12 @@ export default { mounted () { // 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 // given viewport const unobserve = observeElementInViewport(this.$refs.follow, async (_, unobserve, expandZoneElem) => {