[ISSUE #3246] Fixed regression when opening URL
Signed-off-by: Eric Dvorsak <eric@dvorsak.fr>
This commit is contained in:
parent
c7e34ed122
commit
52cc220f21
|
@ -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)}))
|
||||||
|
|
Loading…
Reference in New Issue