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()) {
|
||||
dom.addEventListener(window, 'focusin', function(e) {
|
||||
setTimeout(function() {
|
||||
scrollToElement(e.target, useSmoothScroll());
|
||||
}, 0);
|
||||
scrollToElement(e.target, useSmoothScroll());
|
||||
}, {capture: true});
|
||||
}
|
||||
|
||||
|
|
|
@ -170,7 +170,7 @@ function isLocalIpAddress(address) {
|
|||
return false;
|
||||
}
|
||||
|
||||
function getServerAddress(apiClient) {
|
||||
export function getServerAddress(apiClient) {
|
||||
const serverAddress = apiClient.serverAddress();
|
||||
|
||||
if (isValidIpAddress(serverAddress) && !isLocalIpAddress(serverAddress)) {
|
||||
|
|
|
@ -425,7 +425,6 @@ function initClient() {
|
|||
keyboardnavigation.enable();
|
||||
});
|
||||
require(['mouseManager']);
|
||||
require(['focusPreventScroll']);
|
||||
require(['autoFocuser'], function(autoFocuser) {
|
||||
autoFocuser.enable();
|
||||
});
|
||||
|
@ -819,7 +818,6 @@ function initClient() {
|
|||
return viewManager;
|
||||
});
|
||||
define('slideshow', [componentsPath + '/slideshow/slideshow'], returnFirstDependency);
|
||||
define('focusPreventScroll', ['legacy/focusPreventScroll'], returnFirstDependency);
|
||||
define('userdataButtons', [componentsPath + '/userdatabuttons/userdatabuttons'], returnFirstDependency);
|
||||
define('listView', [componentsPath + '/listview/listview'], returnFirstDependency);
|
||||
define('indicators', [componentsPath + '/indicators/indicators'], returnFirstDependency);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue