diff --git a/src/fileUtils.js b/src/fileUtils.js index f997da6..357cc18 100644 --- a/src/fileUtils.js +++ b/src/fileUtils.js @@ -39,5 +39,9 @@ export default { uploader.click() }) + }, + + readFile (path) { + return fetch(path) } } diff --git a/src/storedQueries.js b/src/storedQueries.js index e8f9b34..1def683 100644 --- a/src/storedQueries.js +++ b/src/storedQueries.js @@ -92,7 +92,7 @@ export default { }, readPredefinedQueries () { - return fetch('./queries.json') + return fu.readFile('./queries.json') .then(resp => { return resp.json() })