From 83e2556b02038834cfabe16e92d89d7ef8af0e2c Mon Sep 17 00:00:00 2001 From: Martin Trapp <94928215+martrapp@users.noreply.github.com> Date: Wed, 25 Sep 2024 15:16:30 +0200 Subject: [PATCH] no logging --- .changeset/purple-eggs-watch.md | 5 +++++ src/index.ts | 4 ---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .changeset/purple-eggs-watch.md diff --git a/.changeset/purple-eggs-watch.md b/.changeset/purple-eggs-watch.md new file mode 100644 index 0000000..0b34766 --- /dev/null +++ b/.changeset/purple-eggs-watch.md @@ -0,0 +1,5 @@ +--- +'@vtbag/turn-signal': patch +--- + +Removes debug logging diff --git a/src/index.ts b/src/index.ts index 2df33f4..f5b5e91 100644 --- a/src/index.ts +++ b/src/index.ts @@ -10,7 +10,6 @@ function pageReveal(e: PageRevealEvent) { hereIdx = act.entry?.index; fromIdx = act.from?.index; } else { - console.log('pages :>> ', pages); if (pages.length) { const index = (url: string) => pages.indexOf(new URL(url).pathname); hereIdx = index(location.href); @@ -24,8 +23,6 @@ function pageReveal(e: PageRevealEvent) { emit(); function emit() { - console.log('hereIdx :>> ', hereIdx); - console.log('fromIdx :>> ', fromIdx); let direction = ['backward', 'same', 'forward']; let value; let dir = currentScript!.dataset.directionAttribute; @@ -45,7 +42,6 @@ function pageReveal(e: PageRevealEvent) { : hereIdx === fromIdx ? direction[1] : direction[2]; - console.log('value :>> ', value); if (attributeName && value) { document.documentElement.setAttribute(attributeName, value); e.viewTransition.finished.then(() =>