Permalink
Browse files

Fix so safari redraws blurs

  • Loading branch information...
jimniels committed Dec 13, 2017
1 parent 0d082f5 commit d8323cc8d1575262f60c0f3fe448c7dea761de77
Showing with 4 additions and 0 deletions.
  1. +4 −0 assets/scripts/scripts.js
@@ -271,6 +271,10 @@ var Game = {
self.$brands.filter('[data-answered="false"]').each(function(){
$(this).find('path').attr('filter', 'url(#blur-' + Game.blurCurrent + ')');
});
// Hack that fixes safari not redrawing
document.body.style.display='none';
document.body.offsetHeight; // no need to store this anywhere, the reference is enough
document.body.style.display='';
}
setTimeout(function(){

0 comments on commit d8323cc

Please sign in to comment.