fix: cargar SigWebTablet.js desde servidor en ver_formulario_enviado

Mismo fix que recepcion.php: servir el JS desde assets/js/ en vez
de localhost:47289 que no sirve archivos estáticos.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Lizandro Guarnizo
2026-07-22 21:25:20 -05:00
co-authored by Claude Sonnet 4.6
parent c6d2caef55
commit 41e6c536c0
+1 -1
View File
@@ -2535,7 +2535,7 @@ document.querySelectorAll('.turnero-firma-item').forEach(function(widget) {
<script>
// ── Topaz SigWeb ────────────────────────────────────────────────────
const topaz = (() => {
const SIGWEB_URL = 'http://localhost:47289/SigWeb/SigWebTablet.js';
const SIGWEB_URL = '<?= rtrim(defined('APP_URL') ? APP_URL : '', '/') ?>/assets/js/SigWebTablet.js';
let _loaded = false, _ctx = null, _target = null, _poll = null;
// _target: { type: 'turnero'|'pro', canvas: CanvasElement, onAccept: fn }