This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // visit | |
| { | |
| "$ref": "#/definitions/c2l0ZS9zZWN0aW9ucy9Qcm9kdWN0L1Byb2R1Y3RTaGVsZi50c3g=", | |
| "definitions": { | |
| "Resolvable": { | |
| "title": "Select from saved", | |
| "type": "object", | |
| "required": [ | |
| "__resolveType" | |
| ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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(";"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import type { AppContext } from "../apps/site.ts"; | |
| declare global { | |
| interface Window { | |
| trafficToDeco: number; | |
| decoUrl: string; | |
| } | |
| } | |
| const maybeRedirectUser = () => { |