mirror of
https://iceshrimp.dev/Crimekillz/jointrashposs.git
synced 2024-11-25 10:19:07 +01:00
7 lines
169 B
TypeScript
7 lines
169 B
TypeScript
export function scrollTo(qs: string) {
|
|
if (process.client) {
|
|
document.querySelector(qs)?.scrollIntoView({
|
|
behavior: 'smooth',
|
|
});
|
|
}
|
|
} |