Skip to content

Commit

Permalink
don't add https to doc_url
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyofbyteball committed Jun 13, 2020
1 parent bee1f57 commit 0913f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/js/controllers/walletHome.js
Original file line number Diff line number Diff line change
Expand Up @@ -956,8 +956,8 @@ angular.module('copayApp.controllers')
if (!doc_url)
return;
// allow other protocols, e.g. ipfs
if (doc_url.indexOf(':') === -1)
doc_url = 'https://' + doc_url;
// if (doc_url.indexOf(':') === -1)
// doc_url = 'https://' + doc_url;
doc_url = doc_url.replace(/{{aa_address}}/g, aa_address);
require('ocore/uri.js').fetchUrl(doc_url, function (err, response) {
if (err)
Expand Down

0 comments on commit 0913f0e

Please sign in to comment.