Respect call order and prioritize public API calls for setting poster, in order to avoid race conditions
This commit is contained in:
@ -140,7 +140,7 @@ const vimeo = {
|
||||
url.pathname = `${url.pathname.split('_')[0]}.jpg`;
|
||||
|
||||
// Set and show poster
|
||||
ui.setPoster.call(player, url.href);
|
||||
ui.setPoster.call(player, url.href).catch(() => {});
|
||||
});
|
||||
|
||||
// Setup instance
|
||||
|
Reference in New Issue
Block a user