diff options
author | Victor Häggqvist <[email protected]> | 2016-01-13 21:17:49 +0100 |
---|---|---|
committer | Victor Häggqvist <[email protected]> | 2016-01-13 21:17:49 +0100 |
commit | 9c6bdedba46b9dc4318cf6709d7b88042b9b588c (patch) | |
tree | 73e0525399cf72bce2a996666c08b75e6b15a86c /src/FetchImage.js | |
parent | 2eaee3cccfd802363d35bc8f4314c4df2313754a (diff) |
simplify and cleanup image loading
Diffstat (limited to '')
-rw-r--r-- | src/FetchImage.js | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/src/FetchImage.js b/src/FetchImage.js deleted file mode 100644 index e637bf1..0000000 --- a/src/FetchImage.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Created by Victor Häggqvist on 1/12/16. - */ - -export const FetchImage = (url) => { - return new Promise((resolve, reject) => { - fetch(url) - .then(res => { - var img = new Image(); - img.src = url; - //console.log(img); - resolve(img); - }); - }); -}; |