From 3297942561725211a3bc18482ffc16cb148e29ba Mon Sep 17 00:00:00 2001 From: Mark Boas Date: Mon, 6 Jun 2022 15:53:25 +0200 Subject: [PATCH] Remove source of flashing There are more in depth fixes but in the short term this flash is a liability for anybody prone to seizures. This disables our constantly updating reading time, but that's OK since it was causing harm. We'll make a longer term fix that restores the functionality at a later date. Related to Issue #99 --- lib/ui/templates/BlogPostTpl.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/ui/templates/BlogPostTpl.js b/lib/ui/templates/BlogPostTpl.js index f9ff5b65..5dff1fde 100644 --- a/lib/ui/templates/BlogPostTpl.js +++ b/lib/ui/templates/BlogPostTpl.js @@ -12,7 +12,11 @@ export default class BlogPostTpl extends Component { const readingTime = Math.random() * 300; if (typeof window !== "undefined") { this.tick = this.tick.bind(this); - setInterval(this.tick, 3000); + //setInterval(this.tick, 3000); + // Note the above line was removed because it was causing + // the page to flash every 3 seconds. + // See https://github.com/BadIdeaFactory/biffud.com/issues/99 + // for further details. } this.state = { readingTime