jclib-ui 1.0.222 → 1.0.224
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
|
@@ -3954,6 +3954,11 @@ const LibProvider = ({ apiConfig, children, versionApp, useTheme }) => {
|
|
|
3954
3954
|
);
|
|
3955
3955
|
const toggleTheme = () => setTheme(theme == "dark" ? "light" : "dark");
|
|
3956
3956
|
useEffect(() => {
|
|
3957
|
+
const MARCADOR = "🔴 ";
|
|
3958
|
+
const inLocalhost = window.location.hostname === "localhost" || window.location.hostname === "127.0.0.1" || window.location.hostname === "[::1]" || window.location.hostname.startsWith("192.168.");
|
|
3959
|
+
if (inLocalhost && !document.title.includes(MARCADOR)) {
|
|
3960
|
+
document.title = `${MARCADOR} ${document.title}`;
|
|
3961
|
+
}
|
|
3957
3962
|
}, []);
|
|
3958
3963
|
useEffect(() => {
|
|
3959
3964
|
if (canChangeTheme) {
|