src/js/main.js
branchlab-port
changeset 501 63e7b66d2a80
parent 498 cf2a0505cadc
child 511 81eb8e686456
--- 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 */