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

Commit

Permalink
Merge pull request #1994 from mklanjsek/prefs-issue
Browse files Browse the repository at this point in the history
Fixed problem with preferences forcing app reload
  • Loading branch information
Sam Foo committed Feb 11, 2021
2 parents 5e6cf6c + 50114ab commit 7fded95
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 7fded95

Please sign in to comment.