Merge pull request #1055 from lucmuller/services/youtube-html
[services/youtube]use tarteaucitron.getElemAttr
This commit is contained in:
commit
eac8076016
|
|
@ -4284,8 +4284,8 @@ tarteaucitron.services.youtube = {
|
||||||
"use strict";
|
"use strict";
|
||||||
var id = 'youtube';
|
var id = 'youtube';
|
||||||
tarteaucitron.fallback(['youtube_player'], function (elem) {
|
tarteaucitron.fallback(['youtube_player'], function (elem) {
|
||||||
elem.style.width = elem.getAttribute('width') + 'px';
|
elem.style.width = tarteaucitron.getElemAttr(elem,'width') + 'px';
|
||||||
elem.style.height = elem.getAttribute('height') + 'px';
|
elem.style.height = tarteaucitron.getElemAttr(elem,'height') + 'px';
|
||||||
return tarteaucitron.engage(id);
|
return tarteaucitron.engage(id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
@ -4333,8 +4333,8 @@ tarteaucitron.services.youtubeplaylist = {
|
||||||
"use strict";
|
"use strict";
|
||||||
var id = 'youtubeplaylist';
|
var id = 'youtubeplaylist';
|
||||||
tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
|
tarteaucitron.fallback(['youtube_playlist_player'], function (elem) {
|
||||||
elem.style.width = elem.getAttribute('width') + 'px';
|
elem.style.width = tarteaucitron.getElemAttr(elem,'width') + 'px';
|
||||||
elem.style.height = elem.getAttribute('height') + 'px';
|
elem.style.height = tarteaucitron.getElemAttr(elem,'height') + 'px';
|
||||||
return tarteaucitron.engage(id);
|
return tarteaucitron.engage(id);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue