Skip to content

Commit c5a1470

Browse files
committed
chore(playground): Update redirection code
1 parent b8bfc37 commit c5a1470

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

playground/src/App.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
const redirectedHash = routingMode === 'multi' ? 'redir' : true;
2828
const redirector = new Redirector();
2929
redirector.redirections.push({
30-
pattern: '/deprecated-path',
30+
path: '/deprecated-path',
3131
href: () => {
3232
const pathnamePiece = calculateHref({ hash: false }, '/feat');
3333
const hashPiece = calculateHref({ hash: redirectedHash }, '/new-path');

playground/src/lib/Tooltip.svelte

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,10 @@
2929
refElement = refEl;
3030
return () => {
3131
refElement = null;
32-
console.log('setReferenceElement cleaned up.');
3332
}
3433
}
3534
3635
function calculateTooltipPos(ttipEl: HTMLElement) {
37-
console.log('calculateTooltipPos');
3836
if (!refElement || !shown) {
3937
return;
4038
}
@@ -46,7 +44,6 @@
4644
offset(8)
4745
],
4846
}).then(result => {
49-
console.log(result);
5047
pos = {
5148
x: result.x,
5249
y: result.y

0 commit comments

Comments
 (0)