From 89aa2fe86c690b15097eecf5f29a597fc43f5957 Mon Sep 17 00:00:00 2001 From: yflory Date: Tue, 24 Sep 2019 18:44:40 +0200 Subject: [PATCH] Fix race condition in the poll APP --- www/poll/inner.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/www/poll/inner.js b/www/poll/inner.js index b9baff904..00c819491 100644 --- a/www/poll/inner.js +++ b/www/poll/inner.js @@ -821,7 +821,9 @@ define([ UI.errorLoadingScreen(errorText); throw new Error(errorText); } - } else { + } + if (!proxy.metadata || typeof(proxy.metadata.title) === "undefined") { + console.error("UPDATE TITLE"); Title.updateTitle(Title.defaultTitle); }