From 917c8a9f7c637f597ba76b15ddd0531087c0c17c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20S=C3=B6derlund?= Date: Thu, 25 Jan 2024 22:32:11 +0100 Subject: [PATCH] Removed debug statements. --- src/lib/client.ts | 6 +++--- src/lib/router.ts | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib/client.ts b/src/lib/client.ts index 4488c78..a96368a 100644 --- a/src/lib/client.ts +++ b/src/lib/client.ts @@ -32,7 +32,7 @@ function subscribeToNavigation(page: Readable) { const cookieData = parseFlashCookie(); if (cookieData !== undefined) { - console.log('🚀 ~ page.subscribe:', cookieData, $page.route.id); + //console.log('🚀 ~ page.subscribe:', cookieData, $page.route.id); const flash = getRouter(page).getFlashMessage($page.route.id); flash.message.set(cookieData, { concatenateArray: !flash.options.clearArray }); clearFlashCookie(flash.options.flashCookieOptions); @@ -44,7 +44,7 @@ function subscribeToNavigation(page: Readable) { if (navTo) { const flash = getRouter(page).getFlashMessage(navTo); if (flash.options.clearOnNavigate && nav.from?.route.id != navTo) { - console.log('🚀 ~ beforeNavigate ~ clear message on nav to:', navTo); + //console.log('🚀 ~ beforeNavigate ~ clear message on nav to:', navTo); flash.message.set(undefined); } } @@ -54,7 +54,7 @@ function subscribeToNavigation(page: Readable) { const cookieData = parseFlashCookie(); if (cookieData !== undefined) { - console.log('🚀 ~ afterNavigate:', cookieData, get(page).route.id); + //console.log('🚀 ~ afterNavigate:', cookieData, get(page).route.id); const flash = getRouter(page).getFlashMessage(get(page).route.id); flash.message.set(cookieData, { concatenateArray: !flash.options.clearArray }); clearFlashCookie(flash.options.flashCookieOptions); diff --git a/src/lib/router.ts b/src/lib/router.ts index af43fc4..9189fb6 100644 --- a/src/lib/router.ts +++ b/src/lib/router.ts @@ -49,7 +49,6 @@ export class FlashRouter { } createRoute(routeId: string, data: FlashMessageType, options?: Partial) { - console.log('createRoute', routeId, options); const closest = this.getClosestRoute(routeId); const newRoute = new FlashMessage(this.messageStore, mergeOptions(closest.options, options));