1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Fix suggestions

This commit is contained in:
MrTimscampi 2020-08-16 16:12:33 +02:00
parent 58361ce70c
commit 667576e056
3 changed files with 2 additions and 6 deletions

View file

@ -532,9 +532,7 @@ import layoutManager from 'layoutManager';
if (isEnabled()) { if (isEnabled()) {
dom.addEventListener(window, 'focusin', function(e) { dom.addEventListener(window, 'focusin', function(e) {
setTimeout(function() { scrollToElement(e.target, useSmoothScroll());
scrollToElement(e.target, useSmoothScroll());
}, 0);
}, {capture: true}); }, {capture: true});
} }

View file

@ -170,7 +170,7 @@ function isLocalIpAddress(address) {
return false; return false;
} }
function getServerAddress(apiClient) { export function getServerAddress(apiClient) {
const serverAddress = apiClient.serverAddress(); const serverAddress = apiClient.serverAddress();
if (isValidIpAddress(serverAddress) && !isLocalIpAddress(serverAddress)) { if (isValidIpAddress(serverAddress) && !isLocalIpAddress(serverAddress)) {

View file

@ -425,7 +425,6 @@ function initClient() {
keyboardnavigation.enable(); keyboardnavigation.enable();
}); });
require(['mouseManager']); require(['mouseManager']);
require(['focusPreventScroll']);
require(['autoFocuser'], function(autoFocuser) { require(['autoFocuser'], function(autoFocuser) {
autoFocuser.enable(); autoFocuser.enable();
}); });
@ -819,7 +818,6 @@ function initClient() {
return viewManager; return viewManager;
}); });
define('slideshow', [componentsPath + '/slideshow/slideshow'], returnFirstDependency); define('slideshow', [componentsPath + '/slideshow/slideshow'], returnFirstDependency);
define('focusPreventScroll', ['legacy/focusPreventScroll'], returnFirstDependency);
define('userdataButtons', [componentsPath + '/userdatabuttons/userdatabuttons'], returnFirstDependency); define('userdataButtons', [componentsPath + '/userdatabuttons/userdatabuttons'], returnFirstDependency);
define('listView', [componentsPath + '/listview/listview'], returnFirstDependency); define('listView', [componentsPath + '/listview/listview'], returnFirstDependency);
define('indicators', [componentsPath + '/indicators/indicators'], returnFirstDependency); define('indicators', [componentsPath + '/indicators/indicators'], returnFirstDependency);