浏览代码

Merge pull request #885 from lucmuller/master

[HOTFIX/884]Fixes Uncaught TypeError: Cannot read properties of null …
Amauri CHAMPEAUX 3 年之前
父节点
当前提交
8eaef13e2b
共有 1 个文件被更改,包括 1 次插入1 次删除
  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"),