Skip to content

Commit

Permalink
Removed debug statements.
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscoheat committed Jan 25, 2024
1 parent 8a5ebdf commit 917c8a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/lib/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function subscribeToNavigation(page: Readable<Page>) {
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);
Expand All @@ -44,7 +44,7 @@ function subscribeToNavigation(page: Readable<Page>) {
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);
}
}
Expand All @@ -54,7 +54,7 @@ function subscribeToNavigation(page: Readable<Page>) {
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);
Expand Down
1 change: 0 additions & 1 deletion src/lib/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ export class FlashRouter {
}

createRoute(routeId: string, data: FlashMessageType, options?: Partial<FlashOptions>) {
console.log('createRoute', routeId, options);
const closest = this.getClosestRoute(routeId);
const newRoute = new FlashMessage(this.messageStore, mergeOptions(closest.options, options));

Expand Down

0 comments on commit 917c8a9

Please # to comment.