Skip to content

Instantly share code, notes, and snippets.

// visit
{
"$ref": "#/definitions/c2l0ZS9zZWN0aW9ucy9Qcm9kdWN0L1Byb2R1Y3RTaGVsZi50c3g=",
"definitions": {
"Resolvable": {
"title": "Select from saved",
"type": "object",
"required": [
"__resolveType"
],
window.addEventListener("load", () => {
// Cookie name to check if the user is part of the test
const TEST_COOKIE = "deco_matcher_2187709"
async function onLoadMarketing() {
const orderForm = await vtexjs.checkout.getOrderForm();
function getCookie(name) {
const cookies = document.cookie.split(";");
import type { AppContext } from "../apps/site.ts";
declare global {
interface Window {
trafficToDeco: number;
decoUrl: string;
}
}
const maybeRedirectUser = () => {