ethyca / fides

The Privacy Engineering & Compliance Framework

Home Page:https://ethyca.com/docs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support for named config overrides in Fides.js

eastandwestwind opened this issue · comments

          This is specifically what some applications need to support -  a global object on `window` that they can prefill with some options for various other JS to pull from. It can't be namespaced just to Fides as it's shared with other tools.

It'd be good to support an explicit config option for init that names this though, like

Fides.init(extra: window.config.fides)
// or
Fides.init(extra: window.options)
// or
Fides.init(extra: window.my.special.options

?

Originally posted by @NevilleS in #4297 (comment)