Cannot access the iframe window

This commit is contained in:
Henri Bergius 2018-12-26 16:31:31 +01:00
parent d0fd2bda1b
commit 173311ed33

View file

@ -78,16 +78,6 @@ function DisplayParticipant(broker, role, defaultUrls, timer) {
clearTimeout(timeout); clearTimeout(timeout);
} }
timeout = setTimeout(() => { 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)); participant.send('open', getRotationUrl(urls, indata));
}, timer); }, timer);
callback('opened', null, next.getAttribute('src')); callback('opened', null, next.getAttribute('src'));