diff --git a/.circleci/config.yml b/.circleci/config.yml index d66224fd76f..2edcdd2fa8b 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -19,7 +19,7 @@ aliases: - &install-node-dependencies | - npm install + rm -rf node_modules/websocket/.git && npm install defaults: &defaults working_directory: ~/MetaMask diff --git a/app/components/Views/BrowserTab/index.js b/app/components/Views/BrowserTab/index.js index d627b141e1c..e8fba813408 100644 --- a/app/components/Views/BrowserTab/index.js +++ b/app/components/Views/BrowserTab/index.js @@ -1190,6 +1190,9 @@ export class BrowserTab extends PureComponent { const { ipfsGateway } = this.props; const data = {}; const urlObj = new URL(url); + if (urlObj.protocol.indexOf('http') === -1) { + return; + } this.lastUrlBeforeHome = null; data.fullHostname = urlObj.hostname; diff --git a/package-lock.json b/package-lock.json index 8f2f4e8a523..a2c548b74bf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -19142,9 +19142,9 @@ "from": "github:brunobar79/react-native-view-shot#androidx" }, "react-native-web3-webview": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/react-native-web3-webview/-/react-native-web3-webview-2.1.0.tgz", - "integrity": "sha512-YTJI5mtJUxzUFlzSFYeBaMbDA/794is8W85KEfk2UR4CinpAgKz29QAN00/DqNHlRhSjsca/vy8b2a44EwTIkw==", + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/react-native-web3-webview/-/react-native-web3-webview-2.1.2.tgz", + "integrity": "sha512-qIB4OQGRoc4E69VDmGWvYd+zpOdGcZht3kETsXlpUkBY42uCukuoZ7bNOlPe6XjbOq1KPHJvepKUaDmZ2sKcPw==", "requires": { "fbjs": "^0.8.3" }, diff --git a/package.json b/package.json index 559429ebd5e..ebebad55a86 100644 --- a/package.json +++ b/package.json @@ -129,7 +129,7 @@ "react-native-tcp": "3.3.0", "react-native-vector-icons": "6.4.2", "react-native-view-shot": "github:brunobar79/react-native-view-shot#androidx", - "react-native-web3-webview": "2.1.0", + "react-native-web3-webview": "2.1.2", "react-navigation": "3.11.1", "react-redux": "5.1.1", "readable-stream": "1.0.33",