File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 1111 "lint" : " eslint ."
1212 },
1313 "dependencies" : {
14- "@chatwoot/react-native-widget" : " ^ 0.0.8 " ,
14+ "@chatwoot/react-native-widget" : " ../chatwoot-react-native-widget- 0.0.9.tgz " ,
1515 "@react-native-async-storage/async-storage" : " ^1.14.1" ,
1616 "react" : " 17.0.1" ,
1717 "react-native" : " 0.64.0" ,
Original file line number Diff line number Diff line change 725725 resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
726726 integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
727727
728- " @chatwoot/react-native-widget@^0.0.8 " :
729- version "0.0.8"
730- resolved "https://registry.yarnpkg.com/@chatwoot/react-native-widget/-/react-native-widget-0.0.8.tgz#e6e198c57c097ec15936d24f00bf99b63a7b9eda"
731- integrity sha512-KfExH1pci+MnBBM4gZSqgEd9h9W830tZLJYauUjU01GrUnTxkBYbisToFdDkcMwJQQKfYP8IVfbhkSqbhonf2Q==
728+ " @chatwoot/react-native-widget@../chatwoot-react-native-widget-0.0.9.tgz " :
729+ version "0.0.9"
730+ resolved "../chatwoot-react-native-widget-0.0.9.tgz#daee270f0b2f5ee8d1eeb9f0fa223354180e7c56"
732731 dependencies :
733732 react-native-modal "^11.7.0"
734733
Original file line number Diff line number Diff line change 11{
22 "name" : " @chatwoot/react-native-widget" ,
3- "version" : " 0.0.8 " ,
3+ "version" : " 0.0.9 " ,
44 "description" : " React Native widget for Chatwoot" ,
55 "main" : " index.js" ,
66 "scripts" : {
Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ const WebViewComponent = ({
4646 } ) ;
4747
4848 const onShouldStartLoadWithRequest = ( request ) => {
49- if ( request . url !== widgetUrl ) {
49+ const shouldRedirectToBrowser = ! widgetUrl . includes ( request . url ) ;
50+ if ( shouldRedirectToBrowser ) {
5051 Linking . openURL ( request . url ) ;
5152 return false ;
5253 }
You can’t perform that action at this time.
0 commit comments