diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-01-13 00:54:13 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-01-13 00:54:13 +0100 |
| commit | 47b6ae0f8ad2f49692222bb0c800e7ba1eb4b94b (patch) | |
| tree | 0206451c15aec72128003d0e953a55b40b81b9a8 /client/index.js | |
| parent | bb7efd0af0db8183b5b3f96ac0de1bfd9cd249ae (diff) | |
face info page
Diffstat (limited to 'client/index.js')
| -rw-r--r-- | client/index.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/client/index.js b/client/index.js index 40be2841..96f2c8c8 100644 --- a/client/index.js +++ b/client/index.js @@ -20,6 +20,8 @@ function appendReactApplet(el, payload) { } function fetchDataset(payload) { + if (payload.command === 'face_analysis') return new Promise(resolve => resolve()) + if (payload.dataset === 'info') return new Promise(resolve => resolve()) const url = "https://megapixels.nyc3.digitaloceanspaces.com/v1/citations/" + payload.dataset + ".json" return fetch(url, { mode: 'cors' }).then(r => r.json()) } |
