This commit is contained in:
Sam Potts
2018-06-18 22:01:56 +10:00
parent 08df96a149
commit 8584f6a1db
18 changed files with 135 additions and 122 deletions

View File

@ -26,7 +26,7 @@ export default function fetch(url, responseType = 'text') {
});
request.addEventListener('error', () => {
throw new Error(request.statusText);
throw new Error(request.status);
});
request.open('GET', url, true);

View File

@ -3,6 +3,7 @@
// ==========================================================================
import Storage from './../storage';
import fetch from './fetch';
import is from './is';
// Load an external SVG sprite