mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fix return statements
This commit is contained in:
parent
161f531523
commit
27cd24f5fc
9 changed files with 53 additions and 28 deletions
|
@ -645,7 +645,8 @@ import Headroom from 'headroom.js';
|
|||
if (!user) {
|
||||
showBySelector('.libraryMenuDownloads', false);
|
||||
showBySelector('.lnkSyncToOtherDevices', false);
|
||||
return showBySelector('.userMenuOptions', false);
|
||||
showBySelector('.userMenuOptions', false);
|
||||
return;
|
||||
}
|
||||
|
||||
if (user.Policy.EnableContentDownloading) {
|
||||
|
@ -957,7 +958,8 @@ import Headroom from 'headroom.js';
|
|||
|
||||
function setTitle (title) {
|
||||
if (title == null) {
|
||||
return LibraryMenu.setDefaultTitle();
|
||||
LibraryMenu.setDefaultTitle();
|
||||
return;
|
||||
}
|
||||
|
||||
if (title === '-') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue