Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created November 14, 2022 17:20
Show Gist options
  • Save parzibyte/88951413e410704598b447e0183324a6 to your computer and use it in GitHub Desktop.
Save parzibyte/88951413e410704598b447e0183324a6 to your computer and use it in GitHub Desktop.
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