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

Merge pull request #4773 from thornbill/consistent-curly-braces

This commit is contained in:
Bill Thornton 2023-09-14 10:51:21 -04:00 committed by GitHub
commit e382f72c21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 41 additions and 40 deletions

View file

@ -95,10 +95,11 @@ export class ComicsPlayer {
onDirChanged = () => {
let langDir = this.comicsPlayerSettings.langDir;
if (!langDir || langDir === 'ltr')
if (!langDir || langDir === 'ltr') {
langDir = 'rtl';
else
} else {
langDir = 'ltr';
}
this.changeLanguageDirection(langDir);
@ -125,10 +126,11 @@ export class ComicsPlayer {
onViewChanged = () => {
let view = this.comicsPlayerSettings.pagesPerView;
if (!view || view === 1)
if (!view || view === 1) {
view = 2;
else
} else {
view = 1;
}
this.changeView(view);