[#10557] "TypeError: Network request failed" crash on sticker market

Signed-off-by: Andrey Shovkoplyas <motor4ik@gmail.com>
This commit is contained in:
Andrey Shovkoplyas 2020-05-05 12:46:50 +02:00
parent 640dfa7da6
commit ebb0697c53
No known key found for this signature in database
GPG Key ID: EAAB7C8622D860A4
1 changed files with 1 additions and 3 deletions

View File

@ -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))