Skip to content

Allow Dynamic injection of GlobalDisclaimer from URL #699

@whatnick

Description

@whatnick

Currently GlobalDisclaimer.html is webpacked into index.js and cannot be overridden at runtime without recompiling a custom image. A client configuration variable such as globalDisclaimer.dynamic can be used to allow loading the disclaimer text dynamically via the require or fetch API.

          if (
            defined(globalDisclaimer.dynamic)
          ) {
            var protocol = window.location.protocol;
            message += require(protocol + "//" + hostname + "/GlobalDisclaimer.html");
          }
          else {
            message += require("./lib/Views/GlobalDisclaimer.html");
          }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions