Sfoglia il codice sorgente

Fixes exception on follow me command.

master
yanas 9 anni fa
parent
commit
76548f1cd0
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2
    2
      modules/FollowMe.js

+ 2
- 2
modules/FollowMe.js Vedi File

@@ -303,10 +303,10 @@ class FollowMe {
303 303
         var clickId = null;
304 304
         if(typeof id !== 'undefined' && !VideoLayout.isPinned(id))
305 305
             clickId = id;
306
-        else if (typeof id == 'undefined')
306
+        else if (typeof id == 'undefined' && VideoLayout.getPinnedId())
307 307
             clickId = VideoLayout.getPinnedId();
308 308
 
309
-        if (clickId !== null)
309
+        if (clickId)
310 310
             VideoLayout.handleVideoThumbClicked(clickId);
311 311
     }
312 312
 

Loading…
Annulla
Salva