From 85b8b6163158446eb881077965f0a100f9dd73ed Mon Sep 17 00:00:00 2001 From: Kevin Ansfield Date: Mon, 8 Apr 2024 17:50:49 +0100 Subject: [PATCH] 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 --- apps/comments-ui/src/utils/adminApi.ts | 3 --- 1 file changed, 3 deletions(-) diff --git a/apps/comments-ui/src/utils/adminApi.ts b/apps/comments-ui/src/utils/adminApi.ts index 813a0ddd1e..fc33ebbe7b 100644 --- a/apps/comments-ui/src/utils/adminApi.ts +++ b/apps/comments-ui/src/utils/adminApi.ts @@ -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; }