turnero: ocultar botón Tableta si SigWeb no está disponible en el equipo
Detecta al cargar la página si localhost:47289 responde; si no, oculta todos los .btn-topaz para evitar el error al usuario. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
4a5e5fd9c9
commit
dd1e377df7
@@ -2550,6 +2550,11 @@ const topaz = (() => {
|
||||
});
|
||||
}
|
||||
|
||||
// Detectar disponibilidad al cargar; ocultar botones si no hay pad
|
||||
_loadScript().then(ok => {
|
||||
if (!ok) document.querySelectorAll('.btn-topaz').forEach(b => b.style.display = 'none');
|
||||
});
|
||||
|
||||
function _toast(msg) {
|
||||
const t = document.createElement('div');
|
||||
t.style.cssText = 'position:fixed;bottom:24px;left:50%;transform:translateX(-50%);'
|
||||
|
||||
Reference in New Issue
Block a user