diff --git a/html/fg.js b/html/fg.js new file mode 100644 index 0000000..55c8dd2 --- /dev/null +++ b/html/fg.js @@ -0,0 +1,17 @@ +const defaultConfig = { + SENTRY_ENABLE: true, +}; + +window.__FG__ = defaultConfig; + +window.getFGConfig = function (user) { + const { id } = user; + const internalUsers = []; + const isInternal = internalUsers.includes(id); + if (isInternal) { + const internalConfig = { + ANYVIEW_DEVELOPER: true, + }; + window.__FG__ = Object.assign(window.__FG__, internalConfig); + } +};