mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-24 18:52:55 +03:00
Allow calling qr() in device.py without image arg
This commit is contained in:
parent
af3e188fee
commit
c5ace4ea10
@ -101,7 +101,7 @@ class RootNode(RpcNode):
|
||||
|
||||
@action(closes_child=False)
|
||||
def qr(self, params, event, signal):
|
||||
return dict(result=scan_qr(params["image"]))
|
||||
return dict(result=scan_qr(params.get("image")))
|
||||
|
||||
|
||||
class ReadersNode(RpcNode):
|
||||
|
Loading…
Reference in New Issue
Block a user