Tracker: `fetch.catch` (#5291)
* Tracker: `fetch.catch` Without this, errors from the API result in uncaught exceptions in clients pages. * chore: Bump tracker_script_version to 2
This commit is contained in:
parent
f8ddecf080
commit
92e41ff3ad
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"tracker_script_version": 1,
|
"tracker_script_version": 2,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"deploy": "node compile.js",
|
"deploy": "node compile.js",
|
||||||
"test": "npm run deploy && npx playwright test",
|
"test": "npm run deploy && npx playwright test",
|
||||||
|
|
|
||||||
|
|
@ -287,7 +287,7 @@
|
||||||
body: JSON.stringify(payload)
|
body: JSON.stringify(payload)
|
||||||
}).then(function(response) {
|
}).then(function(response) {
|
||||||
options && options.callback && options.callback({status: response.status})
|
options && options.callback && options.callback({status: response.status})
|
||||||
})
|
}).catch(function() {})
|
||||||
}
|
}
|
||||||
{{/if}}
|
{{/if}}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue