Commit c9e6a7a
committed
fix(player): stop plyr sprite xhr from crashing the page
Plyr's sprite loader throws new Error(xhr.status) from the XHR error
listener, outside its own try/catch. Any network-layer failure fetching
the icon sprite (offline, ad-block, flaky connection) escapes uncaught as
Error: 0 and escalates to the full-page error screen. Disable loadSprite
so icons reference the same-origin sprite via <use> instead.
Fixes #2387
Fixes #2803
Fixes #2819
Fixes #28791 parent 26c3d51 commit c9e6a7a
1 file changed
Lines changed: 8 additions & 0 deletions
Lines changed: 8 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
18 | 26 | | |
19 | 27 | | |
20 | 28 | | |
| |||
0 commit comments