Skip to content

Commit

Permalink
fix: console spam for localplayer events
Browse files Browse the repository at this point in the history
  • Loading branch information
Stuyk committed May 4, 2024
1 parent ca28241 commit 82b2012
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions webview/composables/useEvents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ let isInitialized = false;

function handleEmits(event: string, ...args: any[]) {
if (!OnEvents[event]) {
if (event.includes('localplayer')) {
return;
}

console.warn(`[Webview] Event ${event}, has no callback`);
return;
}
Expand Down

0 comments on commit 82b2012

Please sign in to comment.