fix embed bug when game ID contains 404
parent
8993947b8d
commit
3f7118c55a
|
@ -47,7 +47,7 @@ $(function() {
|
|||
var $iframe = $('<iframe>').addClass('analyse ' + a.type).attr('src', a.src);
|
||||
$(a.element).replaceWith($iframe);
|
||||
return $iframe.on('load', function() {
|
||||
if (this.contentDocument.title.indexOf("404") >= 0) this.style.height = '100px';
|
||||
if (this.contentDocument.title.indexOf("404") === 0) this.style.height = '100px';
|
||||
}).on('mouseenter', function() {
|
||||
$(this).focus();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue