Removed admin-auth error logs for unknown message events (#20000)

closes https://linear.app/tryghost/issue/ENG-780

- the `admin-auth` frame was set up to log when any `message` event was handled but couldn't be parsed as JSON. For our own events that's fine but `message` events are also frequently triggered by browser extensions meaning the DevTools console log could become quite noisy for no reason
- removed the logging as it's noisy and not useful outside of development
This commit is contained in:
Kevin Ansfield 2024-04-08 17:50:49 +01:00 committed by GitHub
parent 8ba692f0ff
commit 85b8b61631
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,9 +14,6 @@ export function setupAdminAPI({adminUrl}: {adminUrl: string}) {
try {
data = JSON.parse(event.data);
} catch (err) {
/* eslint-disable no-console */
console.error('Error parsing event data', err);
/* eslint-enable no-console */
return;
}