Skip to content

Commit

Permalink
Merge branch 'master' into 4-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Aschen committed Jan 27, 2023
2 parents d508dc1 + cfd3c68 commit 224b3fa
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kuzzle-admin-console",
"version": "4.3.0",
"version": "4.3.2",
"description": "A handy administrative console for Kuzzle",
"author": "The Kuzzle team <[email protected]>",
"scripts": {
Expand Down
6 changes: 5 additions & 1 deletion src/services/telemetryCookies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,11 @@ export default {
get: () => {
const telemetrySetting = document.cookie.split('telemetry=')[1]
if (telemetrySetting !== undefined) {
return JSON.parse(telemetrySetting)
try {
return JSON.parse(telemetrySetting)
} catch (error) {
return null
}
}

return null
Expand Down

0 comments on commit 224b3fa

Please sign in to comment.