mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Migrate scrollHelper to ES6
This commit is contained in:
parent
8fb8dacdf1
commit
4fce7f8be5
18 changed files with 150 additions and 128 deletions
|
@ -376,7 +376,7 @@ import 'scrollStyles';
|
|||
}
|
||||
|
||||
function centerFocus(elem, horiz, on) {
|
||||
import('scrollHelper').then(scrollHelper => {
|
||||
import('scrollHelper').then((scrollHelper) => {
|
||||
const fn = on ? 'on' : 'off';
|
||||
scrollHelper.centerFocus[fn](elem, horiz);
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue