mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix suggestions
This commit is contained in:
parent
58361ce70c
commit
667576e056
3 changed files with 2 additions and 6 deletions
|
@ -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});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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)) {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue