website/static/tests/tour_utils/website_preview_test.js

18 lines
463 B
JavaScript
Raw Normal View History

/** @odoo-module */
import { patch } from "@web/core/utils/patch";
// It's an optionnal import, to patch only when the WebsitePreview is loaded.
const WebsitePreviewLoader = odoo.loader.modules.get("@website/client_actions/website_preview/website_preview");
if (WebsitePreviewLoader) {
patch(WebsitePreviewLoader.WebsitePreview.prototype, {
/**
* @override
*/
get testMode() {
return true;
}
});
}