Skip to content

Commit

Permalink
fix: compatibility with old browsers
Browse files Browse the repository at this point in the history
  • Loading branch information
snitin315 committed Aug 27, 2022
1 parent de8f10e commit 24e25cc
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions client-src/utils/log.js
Expand Up @@ -19,15 +19,16 @@ setLogLevel(defaultLevel);
const log = logger.getLogger(name);

const logEnabledFeatures = (features) => {
const enabledFeatures = Object.entries(features);
const enabledFeatures = Object.keys(features);
if (!features || enabledFeatures.length === 0) {
return;
}

let logString = "Server started:";

// Server started: Hot Module Replacement enabled, Live Reloading enabled, Overlay disabled.
for (const key of Object.keys(features)) {
for (let i = 0; i < enabledFeatures.length; i++) {
const key = enabledFeatures[i];
logString += ` ${key} ${features[key] ? "enabled" : "disabled"},`;
}
// replace last comma with a period
Expand Down

0 comments on commit 24e25cc

Please sign in to comment.