Feat: Extracting Cart and Checout from 3dealer
This commit is contained in:
1 parent
ccab9bbb8e
commit
547f07f01e
30 files changed
+3905
No files matched your search
@@ -0,0 +1,6 @@
|
||||
// Reads the CSRF token from the standard <meta name="csrf-token"> tag every
|
||||
// boboko host renders in its layout <head>. Kept as its own module so both
|
||||
// checkout controllers share one source.
|
||||
export function csrfToken() {
|
||||
return document.querySelector('meta[name="csrf-token"]')?.getAttribute('content') || ''
|
||||
}
|
||||
Reference in new issue
Block a user