From 317b08c703c94c5ce0e1d53603f4e1c9842df249 Mon Sep 17 00:00:00 2001 From: Sam Potts Date: Sat, 3 Mar 2018 23:06:12 +1100 Subject: Ready event fix, YouTube play event fix, docs update --- src/js/ui.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/js/ui.js') diff --git a/src/js/ui.js b/src/js/ui.js index d8d420b0..7e09dea6 100644 --- a/src/js/ui.js +++ b/src/js/ui.js @@ -84,7 +84,9 @@ const ui = { this.ready = true; // Ready event at end of execution stack - utils.dispatchEvent.call(this, this.media, 'ready'); + setTimeout(() => { + utils.dispatchEvent.call(this, this.media, 'ready'); + }, 0); // Set the title ui.setTitle.call(this); -- cgit v1.2.3