feat: add and adjust configs for embed mode

This commit is contained in:
Benedikt Kulmann
2023-11-30 10:57:44 +01:00
parent cf82ed952d
commit f31906da47
3 changed files with 10 additions and 4 deletions

View File

@@ -201,7 +201,9 @@ func Sanitize(cfg *config.Config) {
// remove Embed parent if no value is set
if cfg.Web.Config.Options.Embed.Enabled == "" &&
cfg.Web.Config.Options.Embed.Target == "" &&
cfg.Web.Config.Options.Embed.MessagesOrigin == "" {
cfg.Web.Config.Options.Embed.MessagesOrigin == "" &&
cfg.Web.Config.Options.Embed.DelegateAuthentication == "" &&
cfg.Web.Config.Options.Embed.DelegateAuthenticationOrigin == "" {
cfg.Web.Config.Options.Embed = nil
}
}