Merge pull request #885 from lucmuller/master

[HOTFIX/884]Fixes Uncaught TypeError: Cannot read properties of null …
This commit is contained in:
Amauri CHAMPEAUX 2022-02-16 09:50:42 +01:00 committed by GitHub
commit 8eaef13e2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ tarteaucitron.services.iframe = {
"js": function () { "js": function () {
"use strict"; "use strict";
tarteaucitron.fallback(['tac_iframe'], function (x) { tarteaucitron.fallback(['tac_iframe'], function (x) {
var frame_title = tarteaucitron.fixSelfXSS(x.getAttribute("title")), var frame_title = (x.getAttribute("title")) ? tarteaucitron.fixSelfXSS(x.getAttribute("title")) : '',
width = x.getAttribute("width"), width = x.getAttribute("width"),
height = x.getAttribute("height"), height = x.getAttribute("height"),
allowfullscreen = x.getAttribute("allowfullscreen"), allowfullscreen = x.getAttribute("allowfullscreen"),