Fix bug.
This commit is contained in:
parent
d1d3d6b89f
commit
07033c94b2
|
@ -104,7 +104,7 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){
|
||||||
window.yt_players = {};
|
window.yt_players = {};
|
||||||
function find_out_yt_event_list_key(yt_player){
|
function find_out_yt_event_list_key(yt_player){
|
||||||
var defalt_key = 'o';
|
var defalt_key = 'o';
|
||||||
var all_keys = Object.keys(ytp).filter(function(s){return s.length == 1});
|
var all_keys = Object.keys(yt_player).filter(function(s){return s.length == 1});
|
||||||
var prop_nums_thresh = 6;
|
var prop_nums_thresh = 6;
|
||||||
if(all_keys.indexOf(defalt_key) != -1){
|
if(all_keys.indexOf(defalt_key) != -1){
|
||||||
if((yt_player[defalt_key] instanceof Object) && Object.keys(yt_player[defalt_key]).length > prop_nums_thresh){
|
if((yt_player[defalt_key] instanceof Object) && Object.keys(yt_player[defalt_key]).length > prop_nums_thresh){
|
||||||
|
@ -122,7 +122,7 @@ if (typeof onYouTubeIframeAPIReady !== 'function'){
|
||||||
}
|
}
|
||||||
function find_out_yt_event_list_count_key(yt_player, event_list_key){
|
function find_out_yt_event_list_count_key(yt_player, event_list_key){
|
||||||
var defalt_key = 'v';
|
var defalt_key = 'v';
|
||||||
var all_keys = Object.keys(ytp).filter(function(s){return s.length == 1});
|
var all_keys = Object.keys(yt_player).filter(function(s){return s.length == 1});
|
||||||
var equal_count = yt_player[event_list_key].length;
|
var equal_count = yt_player[event_list_key].length;
|
||||||
if(all_keys.indexOf(defalt_key) != -1){
|
if(all_keys.indexOf(defalt_key) != -1){
|
||||||
if(yt_player[defalt_key] == equal_count){
|
if(yt_player[defalt_key] == equal_count){
|
||||||
|
|
Loading…
Reference in New Issue