Skip to content

Commit

Permalink
Remove source of flashing
Browse files Browse the repository at this point in the history
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
  • Loading branch information
maboa committed Jun 6, 2022
1 parent 7af88a1 commit 3297942
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/ui/templates/BlogPostTpl.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3297942

Please sign in to comment.