From 4f55157898371649d23cb002fc74ecb797c13125 Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Wed, 6 Mar 2019 12:25:10 +0000 Subject: [PATCH] Force full refresh on iframes --- _site/auto-refresh.html | 6 +++--- auto-refresh.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/_site/auto-refresh.html b/_site/auto-refresh.html index d5b5cbc..a5c6ebe 100644 --- a/_site/auto-refresh.html +++ b/_site/auto-refresh.html @@ -6,12 +6,12 @@ window.setInterval(function() { document.getElementById('articles-1').style.zIndex = "2"; document.getElementById('articles-2').style.zIndex = "1"; - document.getElementById('articles-2').contentWindow.location.reload(); - document.getElementsByClass('twitter-timeline')[0].contentWindow.location.reload(); + document.getElementById('articles-2').contentWindow.location.reload(true); + document.getElementsByClass('twitter-timeline')[0].contentWindow.location.reload(true); setTimeout(function() { document.getElementById('articles-2').style.zIndex = "2"; document.getElementById('articles-1').style.zIndex = "1"; - document.getElementById('articles-1').contentWindow.location.reload(); + document.getElementById('articles-1').contentWindow.location.reload(true); }, 10000) }, 20000); diff --git a/auto-refresh.md b/auto-refresh.md index 02e660d..10ce193 100644 --- a/auto-refresh.md +++ b/auto-refresh.md @@ -12,12 +12,12 @@ layout: none window.setInterval(function() { document.getElementById('articles-1').style.zIndex = "2"; document.getElementById('articles-2').style.zIndex = "1"; - document.getElementById('articles-2').contentWindow.location.reload(); - document.getElementsByClass('twitter-timeline')[0].contentWindow.location.reload(); + document.getElementById('articles-2').contentWindow.location.reload(true); + document.getElementsByClass('twitter-timeline')[0].contentWindow.location.reload(true); setTimeout(function() { document.getElementById('articles-2').style.zIndex = "2"; document.getElementById('articles-1').style.zIndex = "1"; - document.getElementById('articles-1').contentWindow.location.reload(); + document.getElementById('articles-1').contentWindow.location.reload(true); }, 10000) }, 20000);