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

Apply suggestions

This commit is contained in:
MrTimscampi 2020-07-24 19:02:25 +02:00
parent e7b87c106f
commit 6030e9677e
2 changed files with 1 additions and 23 deletions

View file

@ -311,21 +311,6 @@ define(['loading', 'globalize', 'events', 'viewManager', 'skinManager', 'backdro
}); });
} }
function enableHistory() {
// shows status bar on navigation
if (browser.xboxOne) {
return false;
}
// Does not support history
if (browser.orsay) {
return false;
}
return true;
}
function enableNativeHistory() { function enableNativeHistory() {
return false; return false;
} }
@ -525,9 +510,7 @@ define(['loading', 'globalize', 'events', 'viewManager', 'skinManager', 'backdro
if (!document.querySelector('.dialogContainer') && startPages.indexOf(curr.type) !== -1) { if (!document.querySelector('.dialogContainer') && startPages.indexOf(curr.type) !== -1) {
return false; return false;
} }
if (enableHistory()) {
return history.length > 1;
}
return (page.len || 0) > 0; return (page.len || 0) > 0;
} }

View file

@ -872,11 +872,6 @@ define(['browser', 'layoutManager', 'dom', 'focusManager', 'ResizeObserver', 'sc
if (item === undefined) { if (item === undefined) {
this.slideTo(this._pos[location], immediate); this.slideTo(this._pos[location], immediate);
} else { } else {
if (!transform) {
item.scrollIntoView();
return;
}
var itemPos = this.getPos(item); var itemPos = this.getPos(item);
if (itemPos) { if (itemPos) {