diff --git a/src/adhocracy_frontend/adhocracy_frontend/static/js/Packages/Core/Config/Config.ts b/src/adhocracy_frontend/adhocracy_frontend/static/js/Packages/Core/Config/Config.ts index f7d53874b..43d4bbad3 100644 --- a/src/adhocracy_frontend/adhocracy_frontend/static/js/Packages/Core/Config/Config.ts +++ b/src/adhocracy_frontend/adhocracy_frontend/static/js/Packages/Core/Config/Config.ts @@ -28,7 +28,7 @@ export interface IService { anonymize_enabled : boolean; // the place for instance specific customizations // remember to parse (e.g. booleans) where they are used - custom : {[key : string]: string}; + custom : {[key : string]: any}; site_name : string; netiquette_url : string; cachebust : boolean; diff --git a/src/adhocracy_frontend/adhocracy_frontend/static/js/Packages/Core/Embed/Embed.ts b/src/adhocracy_frontend/adhocracy_frontend/static/js/Packages/Core/Embed/Embed.ts index 29d0c3cde..3c8149e1c 100644 --- a/src/adhocracy_frontend/adhocracy_frontend/static/js/Packages/Core/Embed/Embed.ts +++ b/src/adhocracy_frontend/adhocracy_frontend/static/js/Packages/Core/Embed/Embed.ts @@ -127,7 +127,8 @@ export class Service { var directiveName = this.provider.normalizeDirective(widget); var contextName = this.provider.normalizeContext(widget); - this.adhConfig.custom["hide_header"] = this.adhConfig.custom["hide_header"] || search.hasOwnProperty("noheader"); + var noheader = search["noheader"] === "true" ? true : false; + this.adhConfig.custom["hide_header"] = this.adhConfig.custom["hide_header"] || noheader; if (this.provider.hasDirective(directiveName)) { this.widget = directiveName;