2022-09-24 07:12:27 +00:00
|
|
|
const defaultConfig = {
|
|
|
|
SENTRY_ENABLE: true,
|
|
|
|
};
|
|
|
|
|
|
|
|
window.__FG__ = defaultConfig;
|
2022-09-25 10:20:55 +00:00
|
|
|
window.SENTRY_RATE = 0.2;
|
2022-09-24 07:12:27 +00:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
};
|