mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Fix stringify objects
This commit is contained in:
parent
1524d03ba2
commit
b3ffa1030d
3 changed files with 9 additions and 4 deletions
|
@ -1,5 +1,5 @@
|
|||
export function log(message, level = 'info') {
|
||||
const endpoint = this.axoConfig?.ajax?.frontend_logger?.endpoint;
|
||||
const endpoint = window.wc_ppcp_axo?.ajax?.frontend_logger?.endpoint;
|
||||
if(!endpoint) {
|
||||
return;
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ export function log(message, level = 'info') {
|
|||
method: 'POST',
|
||||
credentials: 'same-origin',
|
||||
body: JSON.stringify({
|
||||
nonce: this.axoConfig.ajax.frontend_logger.nonce,
|
||||
nonce: window.wc_ppcp_axo.ajax.frontend_logger.nonce,
|
||||
log: {
|
||||
message,
|
||||
level,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue