Explorar o código

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

KrisVos130 %!s(int64=9) %!d(string=hai) anos
pai
achega
a0db53374d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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));