From 316c6038d7d941e8739eaf7d40e732c40ceb9cb9 Mon Sep 17 00:00:00 2001 From: Gheorghe Pinzaru Date: Wed, 14 Oct 2020 17:15:02 +0300 Subject: [PATCH] Fix webview toggle crash ios Signed-off-by: Andrea Maria Piana --- src/status_im/multiaccounts/core.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/status_im/multiaccounts/core.cljs b/src/status_im/multiaccounts/core.cljs index 9a721967b2..6b21d1ef91 100644 --- a/src/status_im/multiaccounts/core.cljs +++ b/src/status_im/multiaccounts/core.cljs @@ -9,6 +9,7 @@ [status-im.utils.theme :as utils.theme] [status-im.theme.core :as theme] [status-im.utils.utils :as utils] + [quo.platform :as platform] [clojure.string :as string])) (defn contact-names @@ -68,7 +69,8 @@ (re-frame/reg-fx ::webview-debug-changed (fn [value] - (native-module/toggle-webview-debug value))) + (when platform/android? + (native-module/toggle-webview-debug value)))) (re-frame/reg-fx ::blank-preview-flag-changed