Fix webview toggle crash ios

Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
Gheorghe Pinzaru 2020-10-14 17:15:02 +03:00 committed by Andrea Maria Piana
parent f5034a4dfa
commit 316c6038d7
No known key found for this signature in database
GPG Key ID: AA6CCA6DE0E06424
1 changed files with 3 additions and 1 deletions

View File

@ -9,6 +9,7 @@
[status-im.utils.theme :as utils.theme] [status-im.utils.theme :as utils.theme]
[status-im.theme.core :as theme] [status-im.theme.core :as theme]
[status-im.utils.utils :as utils] [status-im.utils.utils :as utils]
[quo.platform :as platform]
[clojure.string :as string])) [clojure.string :as string]))
(defn contact-names (defn contact-names
@ -68,7 +69,8 @@
(re-frame/reg-fx (re-frame/reg-fx
::webview-debug-changed ::webview-debug-changed
(fn [value] (fn [value]
(native-module/toggle-webview-debug value))) (when platform/android?
(native-module/toggle-webview-debug value))))
(re-frame/reg-fx (re-frame/reg-fx
::blank-preview-flag-changed ::blank-preview-flag-changed