1
0
Fork 0
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:
MrTimscampi 2020-07-26 22:52:55 +02:00
parent 8fb8dacdf1
commit 4fce7f8be5
18 changed files with 150 additions and 128 deletions

View file

@ -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);
});