From 429811cb3a9e10822d78282053f212d1b54cab2b Mon Sep 17 00:00:00 2001 From: Henri Bergius Date: Thu, 27 Dec 2018 22:27:09 +0100 Subject: [PATCH] Send waitUntil later --- countdown/index.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/countdown/index.html b/countdown/index.html index 6ebf2c8..373a3b1 100644 --- a/countdown/index.html +++ b/countdown/index.html @@ -89,9 +89,11 @@ updateCountDown(); window.waitUntil = display.time.getTime(); if (window.parent) { - window.parent.postMessage({ - waitUntil: window.waitUntil, - }, '*'); + setTimeout(() => { + window.parent.postMessage({ + waitUntil: window.waitUntil, + }, '*'); + }, 10000); } });