1
Fork 0

Set the debug global if the debug feature is enabled.

This commit is contained in:
Bauke 2023-07-05 12:50:43 +02:00
parent 2954c93af5
commit f3f12282e3
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
1 changed files with 1 additions and 0 deletions

View File

@ -18,6 +18,7 @@ async function initialize() {
const start = window.performance.now(); const start = window.performance.now();
initializeGlobals(); initializeGlobals();
const enabledFeatures = await fromStorage(Data.EnabledFeatures); const enabledFeatures = await fromStorage(Data.EnabledFeatures);
window.TildesReExtended.debug = enabledFeatures.value.has(Feature.Debug);
// Any features that will use the knownGroups data should be added to this // Any features that will use the knownGroups data should be added to this
// array so that when groups are changed on Tildes, TRX can still update // array so that when groups are changed on Tildes, TRX can still update