Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created October 1, 2021 15:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/4649876d13ccf67f9d22cffe887cd823 to your computer and use it in GitHub Desktop.
Save parzibyte/4649876d13ccf67f9d22cffe887cd823 to your computer and use it in GitHub Desktop.
async obtenerIp() {
this.cargando = true;
const ip = await AjustesService.obtenerIp();
this.direccionServidor = `${window.location.protocol}//${ip}:${window.location.port}${window.location.pathname}${window.location.hash}`;
new QRious({
element: this.$refs.imagenQr,
value: this.direccionServidor,
size: 200,
backgroundAlpha: 1,
foreground: "#000000",
level: "H",
});
this.cargando = false;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment