myplayer/patches/mediaelement/01-iconsprite.diff

10 lines
443 B
Diff
Raw Normal View History

--- a/src/js/utils/generate.js 2024-11-10 02:15:40.851022011 +0100
+++ b/src/js/utils/generate.js 2024-11-12 02:23:10.833246352 +0100
@@ -48,5 +48,5 @@
const iconHtml = icons.map(icon => {
return `<svg xmlns="http://www.w3.org/2000/svg" id="${playerId}-${icon}" class="${classPrefix}${icon}" aria-hidden="true" focusable="false">
- <use xlink:href="${iconSprite}#${icon}"></use>
+ <use xlink:href="#${icon}"></use>
</svg>
` })