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

Merge pull request #3983 from thornbill/sonar-no-collapsible-if

Fix sonarjs no-collapsible-if
This commit is contained in:
Bill Thornton 2022-10-04 09:30:13 -04:00 committed by GitHub
commit 8d28297a02
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 330 additions and 473 deletions

View file

@ -79,10 +79,10 @@ function init() {
}
function onGlobalizeInit() {
if (window.appMode === 'android') {
if (window.location.href.toString().toLowerCase().indexOf('start=backgroundsync') !== -1) {
return onAppReady();
}
if (window.appMode === 'android'
&& window.location.href.toString().toLowerCase().indexOf('start=backgroundsync') !== -1
) {
return onAppReady();
}
document.title = globalize.translateHtml(document.title, 'core');