Skip to content

Commit

Permalink
fixup! Decouple branding sections from external details
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanenders committed May 17, 2023
1 parent b5556dd commit 7349932
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions admin/src/utils/configs.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ const configs = {};
"ITA_SERVER",
"POSTGREST_SERVER",
"RETICULUM_SERVER",
"TIER",
].forEach(
x => {
const el = document.querySelector(`meta[name='env:${x.toLowerCase()}']`);
configs[x] = el ? el.getAttribute("content") : process.env[x];
}
);
"TIER"
].forEach(x => {
const el = document.querySelector(`meta[name='env:${x.toLowerCase()}']`);
configs[x] = el ? el.getAttribute("content") : process.env[x];
});

// Custom clients do not use <meta> tags for passing data, so if reticulum_server meta tag exists, it is not a custom client
const hasReticulumServerMetaTag = !!document.querySelector("meta[name='env:reticulum_server']");
Expand Down

0 comments on commit 7349932

Please sign in to comment.