diff options
author | Sam Potts <sam@potts.es> | 2018-03-03 23:06:12 +1100 |
---|---|---|
committer | Sam Potts <sam@potts.es> | 2018-03-03 23:06:12 +1100 |
commit | 317b08c703c94c5ce0e1d53603f4e1c9842df249 (patch) | |
tree | 95cff2aacd5068bc029cde2c89355e1fd9847bdb /src/js/ui.js | |
parent | bfb550b8d0be3b4eeb0fc900f26e8c1cb05419fd (diff) | |
download | plyr-317b08c703c94c5ce0e1d53603f4e1c9842df249.tar.lz plyr-317b08c703c94c5ce0e1d53603f4e1c9842df249.tar.xz plyr-317b08c703c94c5ce0e1d53603f4e1c9842df249.zip |
Ready event fix, YouTube play event fix, docs update
Diffstat (limited to 'src/js/ui.js')
-rw-r--r-- | src/js/ui.js | 4 |
1 files changed, 3 insertions, 1 deletions
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); |