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:
Karl-Aksel Puulmann 2025-04-08 18:19:33 +03:00 committed by GitHub
parent f8ddecf080
commit 92e41ff3ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
{
"tracker_script_version": 1,
"tracker_script_version": 2,
"scripts": {
"deploy": "node compile.js",
"test": "npm run deploy && npx playwright test",

View File

@ -287,7 +287,7 @@
body: JSON.stringify(payload)
}).then(function(response) {
options && options.callback && options.callback({status: response.status})
})
}).catch(function() {})
}
{{/if}}
}