Browse Source

Merge pull request #885 from lucmuller/master

[HOTFIX/884]Fixes Uncaught TypeError: Cannot read properties of null …
Amauri CHAMPEAUX 3 years ago
parent
commit
8eaef13e2b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      tarteaucitron.services.js

+ 1 - 1
tarteaucitron.services.js

@@ -12,7 +12,7 @@ tarteaucitron.services.iframe = {
     "js": function () {
         "use strict";
         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"),
                 height = x.getAttribute("height"),
                 allowfullscreen = x.getAttribute("allowfullscreen"),