diff --git a/edsdme/scripts/personalization.js b/edsdme/scripts/personalization.js index 42b66da..5d9f9e2 100644 --- a/edsdme/scripts/personalization.js +++ b/edsdme/scripts/personalization.js @@ -75,7 +75,7 @@ function personalizePage(page) { } export function applyPagePersonalization() { - const main = document.querySelector('main'); + const main = document.querySelector('main') ?? document; personalizePlaceholders(PAGE_PERSONALIZATION_PLACEHOLDERS, main); personalizePage(main); }