diff --git a/infodisplay/infodisplay.js b/infodisplay/infodisplay.js index e2ab664..549332f 100644 --- a/infodisplay/infodisplay.js +++ b/infodisplay/infodisplay.js @@ -47,6 +47,13 @@ function DisplayParticipant(broker, role, defaultUrls, timer) { urls = indata; callback('urls', null, urls); } + if (next.getAttribute('src') === indata) { + // Already open! + next.id = 'current'; + current.id = 'next'; + callback('opened', null, next.getAttribute('src')); + return; + } next.onerror = (err) => { next.onload = null; next.onerror = null;