aboutsummaryrefslogtreecommitdiffstats
path: root/demo/src/js/main.js
diff options
context:
space:
mode:
authorSam <me@sampotts.me>2016-06-09 09:49:01 +0100
committerSam <me@sampotts.me>2016-06-09 09:49:01 +0100
commit98792168e4d76ab126f3fb643b9cc7d462b5d1b2 (patch)
tree2f99332c8e887abc4a3f72e453d5633636ee6140 /demo/src/js/main.js
parent1a745e1eaa027425ba645adcb648d0ba1aa64885 (diff)
downloadplyr-98792168e4d76ab126f3fb643b9cc7d462b5d1b2.tar.lz
plyr-98792168e4d76ab126f3fb643b9cc7d462b5d1b2.tar.xz
plyr-98792168e4d76ab126f3fb643b9cc7d462b5d1b2.zip
Changes to setup return value, SVG bug fix (fixes #269)
Diffstat (limited to 'demo/src/js/main.js')
-rw-r--r--demo/src/js/main.js3
1 files changed, 1 insertions, 2 deletions
diff --git a/demo/src/js/main.js b/demo/src/js/main.js
index 719672bd..093d35d3 100644
--- a/demo/src/js/main.js
+++ b/demo/src/js/main.js
@@ -6,7 +6,6 @@
/*global plyr*/
-
// General functions
;(function() {
// Setup the player
@@ -24,7 +23,7 @@
plyr.loadSprite('dist/demo.svg');
// Plyr returns an array regardless
- var player = instances[0];
+ var player = instances[0].plyr;
// Setup type toggle
var buttons = document.querySelectorAll('[data-source]'),