Revert "DEV: enforces no-var (#94)"

This reverts commit 9ad0133624.
This commit is contained in:
jjaffeux
2020-10-13 15:42:21 +02:00
parent 9ad0133624
commit 9adaef17cc
3 changed files with 258 additions and 151 deletions
@@ -13,12 +13,12 @@ function getNextSlotNum() {
}
function splitWidthInt(value) {
let str = value.substring(0, 3);
var str = value.substring(0, 3);
return str.trim();
}
function splitHeightInt(value) {
let str = value.substring(4, 7);
var str = value.substring(4, 7);
return str.trim();
}
@@ -40,7 +40,7 @@ function keyParse(word) {
// This should call adslot.setTargeting(key for that location, value for that location)
function custom_targeting(key_array, value_array, adSlot) {
for (let i = 0; i < key_array.length; i++) {
for (var i = 0; i < key_array.length; i++) {
if (key_array[i]) {
adSlot.setTargeting(key_array[i], valueParse(value_array[i]));
}
@@ -208,7 +208,7 @@ function loadGoogle() {
}
// The boilerplate code
let dfpSrc =
var dfpSrc =
("https:" === document.location.protocol ? "https:" : "http:") +
"//securepubads.g.doubleclick.net/tag/js/gpt.js";
_promise = loadScript(dfpSrc, { scriptTag: true }).then(function () {