feat(assets): use vitejs to build javascript
This commit is contained in:
parent
43be4482ee
commit
187e84a010
38 changed files with 656 additions and 4038 deletions
|
@ -1,4 +1,4 @@
|
|||
import { scrollTo, scrollToBottom } from '@utils';
|
||||
import { scrollToElement, scrollToBottom } from '@utils';
|
||||
|
||||
function scrollMessagerie() {
|
||||
const ul = document.querySelector('.messagerie ul');
|
||||
|
@ -7,7 +7,7 @@ function scrollMessagerie() {
|
|||
const elementToScroll = document.querySelector('.date.highlighted');
|
||||
|
||||
if (elementToScroll) {
|
||||
scrollTo(ul, elementToScroll);
|
||||
scrollToElement(ul, elementToScroll);
|
||||
} else {
|
||||
scrollToBottom(ul);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue