jclib-ui 1.0.272 → 1.0.273
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/jclib-ui.es.js
CHANGED
|
@@ -3973,10 +3973,15 @@ const LibProvider = ({ apiConfig, children, versionApp, useTheme }) => {
|
|
|
3973
3973
|
);
|
|
3974
3974
|
const toggleTheme = () => setTheme(theme == "dark" ? "light" : "dark");
|
|
3975
3975
|
useEffect(() => {
|
|
3976
|
-
const MARCADOR = "
|
|
3976
|
+
const MARCADOR = " 🔴 ";
|
|
3977
3977
|
const inLocalhost = window.location.hostname == "localhost" || window.location.hostname == "127.0.0.1" || window.location.hostname == "[::1]" || window.location.hostname.startsWith("192.168.");
|
|
3978
3978
|
if (inLocalhost && !document.title.includes(MARCADOR)) {
|
|
3979
|
-
document.title = `${document.title}
|
|
3979
|
+
document.title = `${MARCADOR}${document.title}`;
|
|
3980
|
+
}
|
|
3981
|
+
const MARCADOR2 = " 🟢 ";
|
|
3982
|
+
const inServerTest = window.location.hostname.includes("test.") || window.location.hostname.includes("test-");
|
|
3983
|
+
if (inServerTest && !document.title.includes(MARCADOR2)) {
|
|
3984
|
+
document.title = `${document.title}${MARCADOR2}`;
|
|
3980
3985
|
}
|
|
3981
3986
|
}, []);
|
|
3982
3987
|
useEffect(() => {
|