Add ws address to start QR code

This commit is contained in:
Ivan Danyliuk
2018-11-15 10:05:29 +01:00
parent b12aee6351
commit 9c3aaf7e77
+1 -1
View File
@@ -11,7 +11,7 @@ import (
// StartQR renders the QR code with information needed to start
// a new testing from smartphone.
func (a *App) StartQR() vecty.ComponentOrHTML {
img, err := qr.Encode("test", 500, qr.Medium)
img, err := qr.Encode(a.wsAddress, 500, qr.Medium)
if err != nil {
// TODO(divan): display the error nicely (why this can even happen?)
return elem.Div(vecty.Text(fmt.Sprintf("qr error: %v", err)))