From fbe4988e2225d9319ff7b5f43105d42e3a6ae3a7 Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Thu, 27 Dec 2018 20:32:11 +0100 Subject: [PATCH] Tell infoscreen to wait until finished --- countdown/index.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/countdown/index.html b/countdown/index.html index aefc365..6ebf2c8 100644 --- a/countdown/index.html +++ b/countdown/index.html @@ -87,6 +87,12 @@ document.body.className = display.body; title.innerHTML = display.message; updateCountDown(); + window.waitUntil = display.time.getTime(); + if (window.parent) { + window.parent.postMessage({ + waitUntil: window.waitUntil, + }, '*'); + } });