Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

Commit

Permalink
Fixed problem with preferences forcing app reload
Browse files Browse the repository at this point in the history
Signed-off-by: Milan Klanjsek <[email protected]>
  • Loading branch information
mklanjsek committed Feb 11, 2021
1 parent 5e6cf6c commit 50114ab
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ export class PreferencesService implements OnDestroy {
const isLightTheme = update['general.theme'] === 'light';
const frontendUrl = update['development.frontendUrl'];
const verbose = update['development.verbose'] === 'debug';
const embedded = update['development.embedded'] === 'embedded';
const embedded = update['development.embedded']
? update['development.embedded'] === 'embedded'
: true;
let notificationRequired = false;

if (this.showLabels.value !== showLabels) {
Expand All @@ -145,7 +147,7 @@ export class PreferencesService implements OnDestroy {
this.themeService.switchTheme();
}

if (this.frontendUrl.value !== frontendUrl) {
if (frontendUrl && this.frontendUrl.value !== frontendUrl) {
notificationRequired = true;
this.frontendUrl.next(frontendUrl);
}
Expand Down

0 comments on commit 50114ab

Please sign in to comment.