Browse Source

Fixed issue where something a song wouldn't play and data wouldn't load.

KrisVos130 9 years ago
parent
commit
a0db53374d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/client/client.js

+ 1 - 1
app/client/client.js

@@ -1836,7 +1836,7 @@ Template.room.onCreated(function () {
                 }
                 $("#player").show();
                 function loadVideo() {
-                    if (YT.loaded === 0 && YT.loading === 1) {
+                    if (YT !== undefined && YT.loaded === 0 && YT.loading === 1) {
                         Session.set("loadVideoTimeout", Meteor.setTimeout(function() {
                             loadVideo();
                         }, 500));