Commit ca2301de authored by Alex Beregszaszi's avatar Alex Beregszaszi

Allow bzz:// and manifest URLs

parent df9aa54a
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment