fixed typo which made stuff break. lab-port
authorhamidouk
Wed, 21 Dec 2011 15:35:42 +0100
branchlab-port
changeset 501 63e7b66d2a80
parent 500 a784e70993b3
child 502 0b3523c65578
fixed typo which made stuff break.
src/js/main.js
--- a/src/js/main.js	Wed Dec 21 15:35:21 2011 +0100
+++ b/src/js/main.js	Wed Dec 21 15:35:42 2011 +0100
@@ -17,9 +17,10 @@
     } else {
       // load the real popcorn
       $L = $L.script(libs.popcorn).script(libs["popcorn.code"]);
-      if (config.player === "youtube")
+      if (config.player.type === "youtube") {
         $L = $L.script(libs["popcorn.youtube"]);
-      if (config.player === "vimeo")
+      } 
+      if (config.player.type === "vimeo")
         $L = $L.script(libs["popcorn.vimeo"]);
       
       /* do nothing for html5 */