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

Commit 7fded95

Browse files
author
Sam Foo
authored
Merge pull request #1994 from mklanjsek/prefs-issue
Fixed problem with preferences forcing app reload
2 parents 5e6cf6c + 50114ab commit 7fded95

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

web/src/app/modules/shared/services/preferences/preferences.service.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ export class PreferencesService implements OnDestroy {
130130
const isLightTheme = update['general.theme'] === 'light';
131131
const frontendUrl = update['development.frontendUrl'];
132132
const verbose = update['development.verbose'] === 'debug';
133-
const embedded = update['development.embedded'] === 'embedded';
133+
const embedded = update['development.embedded']
134+
? update['development.embedded'] === 'embedded'
135+
: true;
134136
let notificationRequired = false;
135137

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

148-
if (this.frontendUrl.value !== frontendUrl) {
150+
if (frontendUrl && this.frontendUrl.value !== frontendUrl) {
149151
notificationRequired = true;
150152
this.frontendUrl.next(frontendUrl);
151153
}

0 commit comments

Comments
 (0)