mirror of
https://github.com/Yubico/yubioath-flutter.git
synced 2024-12-25 03:03:50 +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)
|
@action(closes_child=False)
|
||||||
def qr(self, params, event, signal):
|
def qr(self, params, event, signal):
|
||||||
return dict(result=scan_qr(params["image"]))
|
return dict(result=scan_qr(params.get("image")))
|
||||||
|
|
||||||
|
|
||||||
class ReadersNode(RpcNode):
|
class ReadersNode(RpcNode):
|
||||||
|
Loading…
Reference in New Issue
Block a user