Skip to content

Commit

Permalink
Update packages/kit/src/runtime/client/client.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm authored Feb 19, 2024
1 parent cd4d197 commit f6d7017
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/kit/src/runtime/client/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ if (DEV && BROWSER) {
if (!stack) return;
if (!stack[0].includes('https:') && !stack[0].includes('http:')) stack = stack.slice(1); // Chrome includes the error message in the stack
stack = stack.slice(2); // remove `warn` and the place where `warn` was called
// Can be falsy if was called directly from an anonymous function
if (stack[0]?.includes(current_module_url)) return;

warned = true;
Expand Down

0 comments on commit f6d7017

Please sign in to comment.