[fix 6012] can't open dapps from deeplinks
Signed-off-by: yenda <eric@status.im>
This commit is contained in:
parent
a90dc39637
commit
f37276a648
|
@ -75,7 +75,7 @@
|
||||||
(handle-view-profile cofx (match-url url profile-regex))
|
(handle-view-profile cofx (match-url url profile-regex))
|
||||||
|
|
||||||
(match-url url browse-regex)
|
(match-url url browse-regex)
|
||||||
(handle-browse cofx url)
|
(handle-browse cofx (match-url url browse-regex))
|
||||||
|
|
||||||
(and config/extensions-enabled? (match-url url extension-regex))
|
(and config/extensions-enabled? (match-url url extension-regex))
|
||||||
(handle-extension cofx url)
|
(handle-extension cofx url)
|
||||||
|
|
|
@ -13,6 +13,6 @@
|
||||||
(get-in (models/handle-qr-code cofx "0x04e1433c1a8ad71280e6d4b1814aa3958ba6eb451da47ea1d4a4bfc4a04969c445548f3bd9d40fa7e4356aa62075b4d7615179ef1332f1d6a7c59b96c4ab8e04c1") [:db :view-id]))))
|
(get-in (models/handle-qr-code cofx "0x04e1433c1a8ad71280e6d4b1814aa3958ba6eb451da47ea1d4a4bfc4a04969c445548f3bd9d40fa7e4356aa62075b4d7615179ef1332f1d6a7c59b96c4ab8e04c1") [:db :view-id]))))
|
||||||
(testing "handle universal link"
|
(testing "handle universal link"
|
||||||
(is (= (:browser/show-browser-selection (models/handle-qr-code cofx "status-im://browse/www.cryptokitties.co"))
|
(is (= (:browser/show-browser-selection (models/handle-qr-code cofx "status-im://browse/www.cryptokitties.co"))
|
||||||
"status-im://browse/www.cryptokitties.co")))
|
"www.cryptokitties.co")))
|
||||||
(testing "handle invalid qr code"
|
(testing "handle invalid qr code"
|
||||||
(is (:utils/show-popup (models/handle-qr-code cofx "a random string")))))
|
(is (:utils/show-popup (models/handle-qr-code cofx "a random string")))))
|
||||||
|
|
|
@ -22,7 +22,7 @@
|
||||||
(testing "a browse dapp link"
|
(testing "a browse dapp link"
|
||||||
(testing "it open the dapps"
|
(testing "it open the dapps"
|
||||||
(is
|
(is
|
||||||
(= "status-im://browse/www.cryptokitties.co"
|
(= "www.cryptokitties.co"
|
||||||
(:browser/show-browser-selection (links/handle-url {:db db} "status-im://browse/www.cryptokitties.co"))))))
|
(:browser/show-browser-selection (links/handle-url {:db db} "status-im://browse/www.cryptokitties.co"))))))
|
||||||
(testing "a user profile link"
|
(testing "a user profile link"
|
||||||
(testing "it loads the profile"
|
(testing "it loads the profile"
|
||||||
|
|
Loading…
Reference in New Issue