Skip to content

Commit

Permalink
Release v0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
muhsin-k committed Nov 29, 2022
1 parent aca3c8c commit 2173b42
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"lint": "eslint ."
},
"dependencies": {
"@chatwoot/react-native-widget": "^0.0.8",
"@chatwoot/react-native-widget": "../chatwoot-react-native-widget-0.0.9.tgz",
"@react-native-async-storage/async-storage": "^1.14.1",
"react": "17.0.1",
"react-native": "0.64.0",
Expand Down
7 changes: 3 additions & 4 deletions examples/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -725,10 +725,9 @@
resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39"
integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==

"@chatwoot/react-native-widget@^0.0.8":
version "0.0.8"
resolved "https://registry.yarnpkg.com/@chatwoot/react-native-widget/-/react-native-widget-0.0.8.tgz#e6e198c57c097ec15936d24f00bf99b63a7b9eda"
integrity sha512-KfExH1pci+MnBBM4gZSqgEd9h9W830tZLJYauUjU01GrUnTxkBYbisToFdDkcMwJQQKfYP8IVfbhkSqbhonf2Q==
"@chatwoot/react-native-widget@../chatwoot-react-native-widget-0.0.9.tgz":
version "0.0.9"
resolved "../chatwoot-react-native-widget-0.0.9.tgz#daee270f0b2f5ee8d1eeb9f0fa223354180e7c56"
dependencies:
react-native-modal "^11.7.0"

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@chatwoot/react-native-widget",
"version": "0.0.8",
"version": "0.0.9",
"description": "React Native widget for Chatwoot",
"main": "index.js",
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion src/WebView.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ const WebViewComponent = ({
});

const onShouldStartLoadWithRequest = (request) => {
if (request.url !== widgetUrl) {
const shouldRedirectToBrowser = !widgetUrl.includes(request.url);
if (shouldRedirectToBrowser) {
Linking.openURL(request.url);
return false;
}
Expand Down

0 comments on commit 2173b42

Please sign in to comment.