From 48c0634cc68132879fb0ef3c703238ae49a0b8e5 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 26 Jan 2017 13:41:12 -0500 Subject: [PATCH] add error handling --- dashboard-ui/scripts/videoosd.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dashboard-ui/scripts/videoosd.js b/dashboard-ui/scripts/videoosd.js index 7d61673d50..cf2ad332d6 100644 --- a/dashboard-ui/scripts/videoosd.js +++ b/dashboard-ui/scripts/videoosd.js @@ -260,7 +260,9 @@ elem.classList.remove('videoOsdBottom-hidden'); - focusManager.focus(elem.querySelector('.btnPause')); + setTimeout(function () { + focusManager.focus(elem.querySelector('.btnPause')); + }, 50); view.dispatchEvent(new CustomEvent('video-osd-show', { bubbles: true,