From 5757425451303a1b4fe643591393c132ea378313 Mon Sep 17 00:00:00 2001 From: Sam Stowers Date: Sat, 13 Jun 2020 10:40:57 -0500 Subject: [PATCH] Replace WebView URL with one that supports JS API As the title says, the WebView URI used doesn't work with the JavaScript API mentioned in the LiveChat docs. Specifically, it doesn't expose access to LC_API, the global object with LiveChat's functions. Using the new link enables that access, so apps can inject JS to update user's name, email, and other variables, without filling in a redundant form. Also I think it might come with performance improvements on older devices? Not 100% on that one but it feels faster in testing on my old Android. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 649ea35..3ee5fd9 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ To do it, use `react-native-webview` library and add `Webview` component with yo ```javascript /v2/open_chat.cgi', + uri: 'https://direct.lc.chat/ ```