mirror of
https://github.com/vercel/commerce.git
synced 2025-03-29 00:36:04 +00:00
* Start of Shopify provider * add missing comment to documentation * add missing env vars to documentation * update reference to types file
14 lines
356 B
TypeScript
14 lines
356 B
TypeScript
export const getCheckoutIdFromStorage = (token: string) => {
|
|
if (window && window.sessionStorage) {
|
|
return window.sessionStorage.getItem(token)
|
|
}
|
|
|
|
return null
|
|
}
|
|
|
|
export const setCheckoutIdInStorage = (token: string, id: string | number) => {
|
|
if (window && window.sessionStorage) {
|
|
return window.sessionStorage.setItem(token, id + '')
|
|
}
|
|
}
|