This file contains 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
/** @param {HTMLFormElement} form */ | |
async function submitForm(form) { | |
const body = new FormData(body) | |
return fetch(form.action, { | |
method: form.method, | |
body, | |
}) | |
} |
This file contains 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
export interface IEndpoints { | |
/** | |
* Returns Ajax Cart | |
*/ | |
get: '/cart.json', | |
/** | |
* Add a product to cart | |
*/ | |
add: '/cart/add.js', | |
/** |
This file contains 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
# Click the copy button in the right-hand corner. | |
blank() | |
{ | |
__V="2.20.0" | |
__H=" | |
Blanklob utils to work seamlessly with Shopify CLI $__V | |
USAGE | |
blank <command> [options] |