Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann committed Nov 26, 2022
1 parent 39e4d1c commit 9c9b4ca
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions packages/kit/src/runtime/client/client.js
Expand Up @@ -1715,18 +1715,18 @@ function reset_focus() {
}
}

if (__SVELTEKIT_DEV__) {
// Nasty hack to silence harmless warnings the user can do nothing about
const console_warn = console.warn;
console.warn = function warn(...args) {
if (
args.length === 1 &&
/<(Layout|Page)(_[\w$]+)?> was created (with unknown|without expected) prop '(data|form)'/.test(
args[0]
)
) {
return;
}
console_warn(...args);
};
}
// if (__SVELTEKIT_DEV__) {
// // Nasty hack to silence harmless warnings the user can do nothing about
// const console_warn = console.warn;
// console.warn = function warn(...args) {
// if (
// args.length === 1 &&
// /<(Layout|Page)(_[\w$]+)?> was created (with unknown|without expected) prop '(data|form)'/.test(
// args[0]
// )
// ) {
// return;
// }
// console_warn(...args);
// };
// }

0 comments on commit 9c9b4ca

Please sign in to comment.