Forgot to pass index_html to the srcdirectory function.

This commit is contained in:
Suzanne Soy 2021-10-07 21:52:02 +01:00
parent 35cdf41c93
commit c0684a92c8

View File

@ -781,8 +781,8 @@ var src1 = "3c68746d6c3e0a3c686561643e0a3c6d65746120687474702d65717569763d22436f
"617448657864756d70286865784c696e6557696474682c20737263312929293b0a0a646f63756d656e742e676574456c656d656e7442794964282773656c662d73726327292e696e6e65725465787420" +
"3d20686578537472696e67546f537472696e672873726332293b0a0a76617220696e6465785f68746d6c203d206970667348617368576974684c696e6b732831362c207b0a2020224c696e6b73223a20" +
"5b5d2c0a202022697346696c65223a20747275652c0a20202246696c65223a20737263320a7d2c203136293b0a0a76617220726f6f74203d206970667348617368576974684c696e6b732833322c2073" +
"72636469726563746f7279293b0a0a646f63756d656e742e777269746528273c6120687265663d22697066733a2f2f27202b20726f6f742e68617368202b202722223e5065726d616c696e6b20746f20" +
"746869732066696c653a20697066733a2f2f272b726f6f742e686173682b273c2f613e27293b0a0a0a3c2f7363726970743e0a3c2f626f64793e0a3c2f68746d6c3e0a";
"72636469726563746f727928696e6465785f68746d6c29293b0a0a646f63756d656e742e777269746528273c6120687265663d22697066733a2f2f27202b20726f6f742e68617368202b202722223e50" +
"65726d616c696e6b20746f20746869732066696c653a20697066733a2f2f272b726f6f742e686173682b273c2f613e27293b0a0a0a3c2f7363726970743e0a3c2f626f64793e0a3c2f68746d6c3e0a";
var hexLineWidth = 160;
function srcdirectory (index_html) {
return {
@ -872,7 +872,7 @@ var index_html = ipfsHashWithLinks(16, {
"File": src2
}, 16);
var root = ipfsHashWithLinks(32, srcdirectory);
var root = ipfsHashWithLinks(32, srcdirectory(index_html));
document.write('<a href="ipfs://' + root.hash + '"">Permalink to this file: ipfs://'+root.hash+'</a>');