Skip to content

Commit 1e982c1

Browse files
committed
chore: Run prettier
1 parent 04d4592 commit 1e982c1

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

sites/svelte.dev/src/routes/docs/+page.svelte

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
'accessibility-warnings-a11y-role-supports-aria-props',
131131
'accessibility-warnings-a11y-structure',
132132
'accessibility-warnings-a11y-unknown-aria-attribute',
133-
'accessibility-warnings-a11y-unknown-role',
133+
'accessibility-warnings-a11y-unknown-role'
134134
];
135135
136136
/** @type {Map<RegExp, string>}*/
@@ -154,7 +154,7 @@
154154
[/template-syntax-(const|debug|html)$/i, 'special-tags#$1'],
155155
[
156156
/template-syntax-(tags|attributes-and-props|text-expressions|comments)$/i,
157-
'dot-svelte-files#$1',
157+
'dot-svelte-files#$1'
158158
],
159159
// !!!! This one should stay at the bottom of `template-syntax`, or it may end up hijacking logic blocks and special tags
160160
[/template-syntax-(.+)/i, 'special-elements#$1'],
@@ -164,7 +164,7 @@
164164
[/run-time-(client-side-component-api)-?(.*)/i, '$1#$2'],
165165
[
166166
/run-time-(svelte-easing|server-side-component-api|custom-element-api|svelte-register)$/i,
167-
'$1',
167+
'$1'
168168
],
169169
// Catch all, should be at the end or will include store, motion, transition and other modules starting with svelte
170170
[/run-time-(svelte)(?:-(.+))?/i, '$1#$2'],
@@ -173,7 +173,7 @@
173173
[/compile-time-?(.*)/i, 'svelte-compiler#$1'],
174174
175175
// Accessibility warnings
176-
[/(accessibility-warnings)-?(.+)/i, '$1#$2'],
176+
[/(accessibility-warnings)-?(.+)/i, '$1#$2']
177177
]);
178178
179179
function get_old_new_ids_map() {
@@ -199,7 +199,6 @@
199199
}
200200
201201
function getURlToRedirectTo() {
202-
console.log(get_old_new_ids_map());
203202
const hash = $page.url.hash.replace(/^#/i, '');
204203
205204
if (!hash) return '/docs/introduction';
@@ -212,5 +211,8 @@
212211
return `/docs/${old_new_map.get(hash)}`;
213212
}
214213
215-
onMount(() => goto(getURlToRedirectTo(), { replaceState: true }));
214+
onMount(() => {
215+
console.log(get_old_new_ids_map());
216+
goto(getURlToRedirectTo(), { replaceState: true });
217+
});
216218
</script>

0 commit comments

Comments
 (0)