Skip to content

Commit

Permalink
feat: Improve console log colors for firebase remote config
Browse files Browse the repository at this point in the history
This commit updates the console log statement in `firebase.ts` to use color codes for better readability. The remote config fetch and activation status is now displayed in different colors, making it easier to distinguish between fetched and already fetched/activated states.
  • Loading branch information
realashleybailey committed Nov 6, 2023
1 parent 025dd08 commit 62984a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/wizarr-frontend/src/plugins/firebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const vuePluginFirebase = {

// Fetch the firebase remote config
fetchAndActivate(app.config.globalProperties.$remoteConfig).then((activated) => {
console.log("Remote config " + (activated ? "fetched and activated" : "already fetched and activated"));
console.log("\x1b[34m%s\x1b[0m", "[Firebase] " + (activated ? "\x1b[32m%s\x1b[0m" : "\x1b[33m%s\x1b[0m"), "Remote config " + (activated ? "fetched and activated" : "already fetched and activated"));
});

// Global function to retrieve a remote config value as a string
Expand Down

0 comments on commit 62984a6

Please sign in to comment.