Allow bzz:// and manifest URLs

pull/1/head
Alex Beregszaszi 8 years ago
parent df9aa54ae7
commit ca2301de84
  1. 2
      src/app.js

@ -531,7 +531,7 @@ var run = function () {
files.addReadOnly(url, content)
cb(null, content)
})
} else if ((match = /^bzzr:\/\/?([0-9a-fA-F]{64}$)/.exec(url))) {
} else if ((match = /^(bzzr?:\/\/?.*)$/.exec(url))) {
$('#output').append($('<div/>').append($('<pre/>').text('Loading ' + url + ' ...')))
swarmgw.get(match[1], function (err, content) {
if (err) {

Loading…
Cancel
Save