aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Potts <me@sampotts.me>2017-11-18 19:31:45 +1100
committerSam Potts <me@sampotts.me>2017-11-18 19:31:45 +1100
commit4dca4bf93c5cfcb8adb40b78528867de271b8361 (patch)
tree994e19d1bac99df2039df242b21d5c2cf8174ee2 /src
parent1a26681d87c1160976d051687ca09a4035000a4c (diff)
downloadplyr-4dca4bf93c5cfcb8adb40b78528867de271b8361.tar.lz
plyr-4dca4bf93c5cfcb8adb40b78528867de271b8361.tar.xz
plyr-4dca4bf93c5cfcb8adb40b78528867de271b8361.zip
Minor fixes
Diffstat (limited to 'src')
-rw-r--r--src/js/controls.js2
-rw-r--r--src/js/listeners.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/js/controls.js b/src/js/controls.js
index 748d848c..0fb17237 100644
--- a/src/js/controls.js
+++ b/src/js/controls.js
@@ -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);
}
diff --git a/src/js/listeners.js b/src/js/listeners.js
index 71f381f7..3d9334ce 100644
--- a/src/js/listeners.js
+++ b/src/js/listeners.js
@@ -432,7 +432,7 @@ const listeners = {
// Airplay
utils.on(this.elements.buttons.airplay, 'click', event =>
proxy(event, 'airplay', () => {
- this.airPlay();
+ this.airplay();
})
);