fix embed bug when game ID contains 404

eval-cache-v
Thibault Duplessis 2017-04-19 11:27:49 +02:00
parent 8993947b8d
commit 3f7118c55a
1 changed files with 1 additions and 1 deletions

View File

@ -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();
});