[#10557] "TypeError: Network request failed" crash on sticker market
Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
parent
640dfa7da6
commit
ebb0697c53
|
@ -130,9 +130,7 @@
|
|||
(on-error response)
|
||||
|
||||
:else false)))
|
||||
(.catch (or on-error
|
||||
(fn [error]
|
||||
(utils/show-popup "Error" url (str error))))))))
|
||||
(.catch (or on-error #())))))
|
||||
|
||||
(defn normalize-url [url]
|
||||
(str (when (and (string? url) (not (re-find #"^[a-zA-Z-_]+:/" url))) "http://") url))
|
||||
|
|
Loading…
Reference in New Issue