Skip to content

Commit

Permalink
no logging
Browse files Browse the repository at this point in the history
  • Loading branch information
martrapp committed Sep 25, 2024
1 parent 9b3a960 commit 83e2556
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/purple-eggs-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@vtbag/turn-signal': patch
---

Removes debug logging
4 changes: 0 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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;
Expand All @@ -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(() =>
Expand Down

0 comments on commit 83e2556

Please sign in to comment.