From 62984a6d34967c0ef7cfe3332cc629f4d92c0108 Mon Sep 17 00:00:00 2001 From: Ashley Date: Mon, 6 Nov 2023 05:47:16 +0000 Subject: [PATCH] feat: Improve console log colors for firebase remote config 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. --- apps/wizarr-frontend/src/plugins/firebase.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/wizarr-frontend/src/plugins/firebase.ts b/apps/wizarr-frontend/src/plugins/firebase.ts index a6e9c3627..2b2af972a 100644 --- a/apps/wizarr-frontend/src/plugins/firebase.ts +++ b/apps/wizarr-frontend/src/plugins/firebase.ts @@ -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