clean up console.logs

This commit is contained in:
Barry Gitarts 2019-01-31 15:35:39 -05:00
parent 5189613cbe
commit c65111d4cc
4 changed files with 8 additions and 9 deletions

View File

@ -17,7 +17,7 @@
"ipfs": "^0.33.1",
"lodash": "^4.17.11",
"memoize-one": "^4.0.3",
"murmur-client": "^0.2.4",
"murmur-client": "^0.2.5",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"react-dropzone": "^7.0.1",

View File

@ -54,7 +54,6 @@ export default class Home extends PureComponent<Props> {
connect = async (account) => {
if (!account) {
this.setState({ loading: true });
console.log({status}, status.connectToProvider)
status.connectToProvider(this.server.provider, null);
return this.onConnect();
}
@ -65,7 +64,6 @@ export default class Home extends PureComponent<Props> {
};
connectMurMur() {
console.log({Murmur})
this.server = new Murmur({
protocols: ["libp2p"],
// signalServer: { host: '104.248.64.24', port: '9090', protocol: 'ws' },

View File

@ -3,9 +3,10 @@ export const openBrowserWindow = url => {
}
export const addWindowEventListeners = (sendMessage) => {
const verbose = window.statusVerbose
window.addEventListener('message', function (msg) {
console.log('message', msg)
if (msg.source === window.parent) {
if(window.statusVerbose) console.log('message', msg)
if (msg.source === window.parent && window.statusVerbose) {
console.log(msg.data)
}

View File

@ -10994,10 +10994,10 @@ multistream-select@^0.14.1, multistream-select@~0.14.3, multistream-select@~0.14
semver "^5.5.0"
varint "^5.0.0"
murmur-client@^0.2.4:
version "0.2.4"
resolved "https://registry.yarnpkg.com/murmur-client/-/murmur-client-0.2.4.tgz#fa8b8681451b92a74b7262faf445ceb7744933f5"
integrity sha512-nE4aOK+F4w5o8kgGhEjYthYqCgrJh7w+gydNXqDk4/loAO1STvbqAUboEXnT6w9PeqUONpgtPk0k3ZhQ8P1xtQ==
murmur-client@^0.2.5:
version "0.2.5"
resolved "https://registry.yarnpkg.com/murmur-client/-/murmur-client-0.2.5.tgz#a855b93892ba77820997011bcdb234d6cdbec3e5"
integrity sha512-sZmA8+wH5I9A/flbN7452IQphsRNdLbhuG/ocZydRBa1ggJ50QGr3IY14lW2piyOwobrrTqiD5ui38rxM1oyEg==
dependencies:
"@nodeutils/defaults-deep" "^1.1.0"
async "^2.6.1"