diff --git a/wwwroot/qr_scan.ui b/wwwroot/qr_scan.ui index c99797e..aee5ac0 100644 --- a/wwwroot/qr_scan.ui +++ b/wwwroot/qr_scan.ui @@ -7,7 +7,7 @@ "event": "recognized", "actiontype": "script", "target": "self", - "script": "window.open('${text}', '_blank');" + "script": "if(event && event.params && event.params.text) window.open(event.params.text, '_blank');" }, { "wid": "self",