Skip to content

Commit

Permalink
refactor: remove unused message handlers
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Pokorný <[email protected]>
  • Loading branch information
JanPokorny committed Jan 7, 2025
1 parent 812e4e5 commit ec2d57a
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions src/entry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,18 +108,6 @@ const ALLOWED_ORIGINS = (import.meta.env.VITE_ALLOWED_FRAME_ANCESTORS ?? '').spl
}

switch (data.type) {
case 'bee:setFullscreen':
updateState({ fullscreen: data.value });
return;

case 'bee:updateTheme':
updateState({ theme: data.theme });
return;

case 'bee:updateCode':
updateState({ code: data.code, config: data.config })
return;

case 'bee:response':
app.kernel._worker.postMessage(data);
return;
Expand Down

0 comments on commit ec2d57a

Please sign in to comment.