diff --git a/addons/website/static/src/js/website.tour.test.js b/addons/website/static/src/js/website.tour.test.js index b98adb98b27..4fc9f1fe213 100644 --- a/addons/website/static/src/js/website.tour.test.js +++ b/addons/website/static/src/js/website.tour.test.js @@ -13,7 +13,7 @@ if (typeof Tour === "undefined") { } for (var i in scripts) { if (typeof jQuery === "undefined") { - throw new Error("jQuery not found.\nhref: " + window.location.href + "\n\n" + document.body.innerHTML); + throw new Error("jQuery not found.\nhref: " + window.location.href + (document && document.body ? "\n\n" + document.body.innerHTML : "")); } jQuery.ajax({ async: false,