Fix settings

This commit is contained in:
Tamius Han 2020-05-29 22:50:39 +02:00
parent 88a3298cfa
commit ee7d958224

View File

@ -556,7 +556,7 @@ class Settings {
} }
getDefaultStretchMode(site) { getDefaultStretchMode(site) {
if (site && this.active.sites[site]?.stretch !== Stretch.Default) { if (site && (this.active.sites[site]?.stretch ?? Stretch.Default) !== Stretch.Default) {
return this.active.sites[site].stretch; return this.active.sites[site].stretch;
} }
@ -564,7 +564,7 @@ class Settings {
} }
getDefaultCropPersistenceMode(site) { getDefaultCropPersistenceMode(site) {
if (site && this.active.sites[site]?.cropModePersistence !== Stretch.Default) { if (site && (this.active.sites[site]?.cropModePersistence ?? Stretch.Default) !== Stretch.Default) {
return this.active.sites[site].cropModePersistence; return this.active.sites[site].cropModePersistence;
} }
@ -573,7 +573,7 @@ class Settings {
} }
getDefaultVideoAlignment(site) { getDefaultVideoAlignment(site) {
if (this.active.sites[site]?.videoAlignment !== VideoAlignment.Default) { if ( (this.active.sites[site]?.videoAlignment ?? VideoAlignment.Default) !== VideoAlignment.Default) {
return this.active.sites[site].videoAlignment; return this.active.sites[site].videoAlignment;
} }