From ee7d958224c63839a41aefe9e1cef6f3b80e09c3 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Fri, 29 May 2020 22:50:39 +0200 Subject: [PATCH] Fix settings --- src/ext/lib/Settings.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/ext/lib/Settings.js b/src/ext/lib/Settings.js index a74a6ce..c9f261a 100644 --- a/src/ext/lib/Settings.js +++ b/src/ext/lib/Settings.js @@ -556,7 +556,7 @@ class Settings { } 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; } @@ -564,7 +564,7 @@ class Settings { } 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; } @@ -573,7 +573,7 @@ class Settings { } 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; }