Skip to content

Commit

Permalink
Log history item added
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvire committed Jul 22, 2024
1 parent cd41525 commit 38a8fe8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/navigate/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ import { addHistory, type HistoryItem } from '$lib/data/history';
import { goto } from '$app/navigation';
import { base } from '$app/paths';
import { get } from 'svelte/store';
import { logScreenView } from '$lib/data/analytics';

function logHistoryItemAdded(itemAdded: HistoryItem) {
//console.log('History item added:', itemAdded);
logScreenView(itemAdded);
}

export function navigateToUrl(item: { collection: string; book: string; url: string }) {
Expand Down

0 comments on commit 38a8fe8

Please sign in to comment.