Cannot access the iframe window
This commit is contained in:
parent
d0fd2bda1b
commit
173311ed33
1 changed files with 0 additions and 10 deletions
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue