From 173311ed3366c40b783dab814f76035fa2919af5 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Wed, 26 Dec 2018 16:31:31 +0100 Subject: [PATCH] Cannot access the iframe window --- infodisplay/infodisplay.js | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/infodisplay/infodisplay.js b/infodisplay/infodisplay.js index 976e539..0f252d4 100644 --- a/infodisplay/infodisplay.js +++ b/infodisplay/infodisplay.js @@ -78,16 +78,6 @@ function DisplayParticipant(broker, role, defaultUrls, timer) { clearTimeout(timeout); } timeout = setTimeout(() => { - const now = new Date(); - if (next.contentWindow - && next.contentWindow.waitUntil - && next.contentWindow.waitUntil > now.getTime()) { - // This view wants more time, let it run to completion - setTimeout(() => { - participant.send('open', getRotationUrl(urls, indata)); - }, next.contentWindow.waitUntil - now.getTime()); - return; - } participant.send('open', getRotationUrl(urls, indata)); }, timer); callback('opened', null, next.getAttribute('src'));