@livechat/customer-auth
Advanced tools
Comparing version 0.4.0-alpha.3 to 0.4.0-alpha.4
@@ -10,3 +10,2 @@ 'use strict'; | ||
var React = require('react'); | ||
var reactNative = require('react-native'); | ||
var reactNativeWebview = require('react-native-webview'); | ||
@@ -195,6 +194,2 @@ | ||
var target = reactNative.Platform.select({ | ||
ios: 'parent', | ||
android: '__REACT_WEB_VIEW_BRIDGE' | ||
}); | ||
var WebView = reactNativeWebview.WebView; | ||
@@ -280,3 +275,3 @@ var AuthWebView = | ||
return this.state.uri ? React.createElement(WebView, { | ||
injectedJavaScript: target + ".postMessage(location.hash || location.search)", | ||
injectedJavaScript: "window.ReactNativeWebView.postMessage(location.hash || location.search)", | ||
onMessage: this.onMessage, | ||
@@ -283,0 +278,0 @@ ref: this.storeWebViewRef, |
{ | ||
"name": "@livechat/customer-auth", | ||
"version": "0.4.0-alpha.3", | ||
"version": "0.4.0-alpha.4", | ||
"description": "Authorization library for connecting to LiveChat as a customer.", | ||
@@ -5,0 +5,0 @@ "contributors": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
21585
607