Skip to content

Commit

Permalink
Update client.js
Browse files Browse the repository at this point in the history
Switch from string.indexOf to string.includes.
  • Loading branch information
nikhilk authored Dec 27, 2023
1 parent 634de59 commit ace47d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/integrations/svelte/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ function filteredConsoleWarning(msg, ...rest) {

const isKnownSvelteError =
msg.endsWith("was created with unknown prop 'class'") ||
msg.indexOf("was created with unknown prop 'data-astro-cid") > 0;
msg.includes("was created with unknown prop 'data-astro-cid");
if (isKnownSvelteError) return;
}
originalConsoleWarning(msg, ...rest);
Expand Down

0 comments on commit ace47d4

Please sign in to comment.