Skip to content

Allow Dynamic injection of GlobalDisclaimer from URL #699

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");
          }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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