fixed qr data

This commit is contained in:
Andrey Shovkoplyas 2017-10-16 13:20:47 +03:00 committed by Roman Volosovskyi
parent de161c4412
commit 9aa0b1b4b2
1 changed files with 1 additions and 2 deletions

View File

@ -29,5 +29,4 @@
(r/create-element default-camera (clj->js (merge {:inverted true} props)))) (r/create-element default-camera (clj->js (merge {:inverted true} props))))
(defn get-qr-code-data [code] (defn get-qr-code-data [code]
(when (= "QR_CODE" (.-type code)) (.-data code))
(.-data code)))