diff --git a/scripts/scripts.js b/scripts/scripts.js index 4b55e41..5737ca9 100644 --- a/scripts/scripts.js +++ b/scripts/scripts.js @@ -50,6 +50,7 @@ async function loadTarget() { // Loop through them and inject offers?.execute?.pageLoad?.options?.forEach((opt) => { + if (!opt.content?.[0] || opt.content.length === 0) return; const { cssSelector, content } = opt.content[0]; const el = document.querySelector(cssSelector); if (el) el.outerHTML = content;