fix "fixed" undefined and "i" undefined
This commit is contained in:
parent
586ad0e722
commit
4cf0ff2c7c
|
|
@ -1655,8 +1655,7 @@ var tarteaucitron = {
|
|||
}
|
||||
},
|
||||
"fixSelfXSS": function(html) {
|
||||
fixed = html.toString().replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
||||
return fixed;
|
||||
return html.toString().replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'");
|
||||
},
|
||||
"getLanguage": function () {
|
||||
"use strict";
|
||||
|
|
@ -1936,6 +1935,7 @@ var tarteaucitron = {
|
|||
},
|
||||
"triggerJobsAfterAjaxCall": function() {
|
||||
tarteaucitron.job.forEach(function(e) { tarteaucitron.job.push(e) });
|
||||
var i;
|
||||
var allowBtns = document.getElementsByClassName("tarteaucitronAllow");
|
||||
for (i = 0; i < allowBtns.length; i++) {
|
||||
tarteaucitron.addClickEventToElement(allowBtns[i], function () {
|
||||
|
|
|
|||
Loading…
Reference in New Issue