Support all 3 Swarm protocols (bzz,bzzr,bzzi)

pull/1/head
Alex Beregszaszi 8 years ago
parent 7359d27374
commit 9fb650157a
  1. 3
      src/app.js

@ -542,7 +542,8 @@ var run = function () {
files.addReadOnly(url, content)
cb(null, content)
})
} else if ((match = /^(bzzr?:\/\/?.*)$/.exec(url))) {
} else if ((match = /^(bzz[ri]?:\/\/?.*)$/.exec(url))) {
// Supported: bzz:, bzzr:, bzzi:
$('#output').append($('<div/>').append($('<pre/>').text('Loading ' + url + ' ...')))
handleSwarmImport(match[1], function (err, content) {
if (err) {

Loading…
Cancel
Save