[ISSUE #3246] Fixed regression when opening URL

Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
This commit is contained in:
Julien Eluard 2018-02-07 14:08:06 +01:00 committed by Eric Dvorsak
parent c7e34ed122
commit 52cc220f21
No known key found for this signature in database
GPG Key ID: 932AC1CE5F05DE0C
1 changed files with 4 additions and 4 deletions

View File

@ -29,8 +29,8 @@
(defn browse [link] (defn browse [link]
(show {:title (i18n/label :t/browsing-title) (show {:title (i18n/label :t/browsing-title)
:options [{:text (i18n/label :t/browsing-open-in-browser) :options [{:label (i18n/label :t/browsing-open-in-browser)
:action (re-frame/dispatch [:open-browser {:url link}])} :action #(re-frame/dispatch [:open-browser {:url link}])}
{:text (i18n/label :t/browsing-open-in-web-browser) {:label (i18n/label :t/browsing-open-in-web-browser)
:action (.openURL react/linking link)}] :action #(.openURL react/linking link)}]
:cancel-text (i18n/label :t/browsing-cancel)})) :cancel-text (i18n/label :t/browsing-cancel)}))