Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created Nov 14, 2022
Embed
What would you like to do?
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