Relative Directory for github.io

This commit is contained in:
Terence Eden
2017-04-18 08:39:35 +01:00
committed by GitHub
parent ba8b9a73ac
commit b25dd0d56d

View File

@@ -20,7 +20,7 @@ number.addEventListener('input', function(e){
render(e.target.value);
});
var urls = items.map(item => '/tiny/' + item + '.svg');
var urls = items.map(item => 'tiny/' + item + '.svg');
var icons;
Promise.all(urls.map(url => fetch(url).then(res => res.text()))).then(all => {
icons = all;