Skip to content

Commit

Permalink
Improve performance
Browse files Browse the repository at this point in the history
According my performance tests it will make code much faster
see
ErDmKo#4 (comment)
  • Loading branch information
ErDmKo authored Jan 23, 2024
1 parent a411786 commit cef7ee0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/utils/iframeConnector/iframeConnector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,9 @@ export const handleInputMessage = (
counterInfo: CounterInfo,
event: MessageEvent,
) => {
if (event.data[0] !== '{') {
return;
}
let messageInfo: FullMessage | null = null;
let meta: string | null = null;
const state = getIframeState(ctx);
Expand Down

0 comments on commit cef7ee0

Please sign in to comment.