Minor fixes

This commit is contained in:
Sam Potts
2017-11-18 19:31:45 +11:00
parent 1a26681d87
commit 4dca4bf93c
4 changed files with 4 additions and 4 deletions

2
src/js/controls.js vendored
View File

@ -79,7 +79,7 @@ const controls = {
// https://github.com/sampotts/plyr/issues/460
// https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href
if ('href' in use) {
use.setAttribute('href', path);
use.setAttributeNS('http://www.w3.org/1999/xlink', 'href', path);
} else {
use.setAttributeNS('http://www.w3.org/1999/xlink', 'xlink:href', path);
}