Commit 9fb65015 authored by Alex Beregszaszi's avatar Alex Beregszaszi

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

parent 7359d273
...@@ -542,7 +542,8 @@ var run = function () { ...@@ -542,7 +542,8 @@ var run = function () {
files.addReadOnly(url, content) files.addReadOnly(url, content)
cb(null, 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 + ' ...'))) $('#output').append($('<div/>').append($('<pre/>').text('Loading ' + url + ' ...')))
handleSwarmImport(match[1], function (err, content) { handleSwarmImport(match[1], function (err, content) {
if (err) { 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