File tree 4 files changed +7
-7
lines changed 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 11
11
"lint" : " eslint ."
12
12
},
13
13
"dependencies" : {
14
- "@chatwoot/react-native-widget" : " ^ 0.0.8 " ,
14
+ "@chatwoot/react-native-widget" : " ../chatwoot-react-native-widget- 0.0.9.tgz " ,
15
15
"@react-native-async-storage/async-storage" : " ^1.14.1" ,
16
16
"react" : " 17.0.1" ,
17
17
"react-native" : " 0.64.0" ,
Original file line number Diff line number Diff line change 725
725
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
726
726
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==
727
727
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"
732
731
dependencies :
733
732
react-native-modal "^11.7.0"
734
733
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @chatwoot/react-native-widget" ,
3
- "version" : " 0.0.8 " ,
3
+ "version" : " 0.0.9 " ,
4
4
"description" : " React Native widget for Chatwoot" ,
5
5
"main" : " index.js" ,
6
6
"scripts" : {
Original file line number Diff line number Diff line change @@ -46,7 +46,8 @@ const WebViewComponent = ({
46
46
} ) ;
47
47
48
48
const onShouldStartLoadWithRequest = ( request ) => {
49
- if ( request . url !== widgetUrl ) {
49
+ const shouldRedirectToBrowser = ! widgetUrl . includes ( request . url ) ;
50
+ if ( shouldRedirectToBrowser ) {
50
51
Linking . openURL ( request . url ) ;
51
52
return false ;
52
53
}
You can’t perform that action at this time.
0 commit comments