-
-
Save parzibyte/88951413e410704598b447e0183324a6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const impresoras = await ConectorPluginV3.obtenerImpresorasRemotas(URLPlugin, url + "/impresoras"); | |
if (Array.isArray(impresoras)) { | |
for (const impresora of impresoras) { | |
$listaDeImpresoras.appendChild(Object.assign(document.createElement("option"), { | |
value: impresora, | |
text: impresora, | |
})); | |
} | |
} else { | |
alert("Error obteniendo impresoras: " + impresoras); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment