Use data-* attribute

This commit is contained in:
Amauri CHAMPEAUX 2018-04-18 20:53:32 +02:00 committed by GitHub
parent b366a94721
commit f48c2e3812
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -14,7 +14,7 @@ tarteaucitron.services.iframe = {
tarteaucitron.fallback(['tac_iframe'], function (x) {
var width = x.getAttribute("width"),
height = x.getAttribute("height"),
url = x.getAttribute("url");
url = x.getAttribute("data-url");
return '<iframe src="' + url + '" width="' + width + '" height="' + height + '" frameborder="0" scrolling="no" allowtransparency allowfullscreen></iframe>';
});