diff --git a/public/index.html b/public/index.html index aa069f2..2f74be0 100644 --- a/public/index.html +++ b/public/index.html @@ -2,14 +2,12 @@ - - - React App + FPB Search diff --git a/public/manifest.json b/public/manifest.json index 080d6c7..653f095 100644 --- a/public/manifest.json +++ b/public/manifest.json @@ -1,6 +1,6 @@ { - "short_name": "React App", - "name": "Create React App Sample", + "short_name": "FPB Search", + "name": "Free Programming Books Search", "icons": [ { "src": "favicon.ico", diff --git a/src/App.js b/src/App.js index d14fb19..2df2c03 100644 --- a/src/App.js +++ b/src/App.js @@ -5,7 +5,7 @@ import SearchResult from "./components/SearchResult"; import axios from "axios"; import Fuse from "fuse.js"; -const fpb = require("./fpb.json"); //local copy of json becuase online currently can't be accessed +const fpb = null; // eslint-disable-next-line function makeBook(author, hLang, cLang, title, url) { @@ -27,7 +27,8 @@ function forEachBook(func, json) { throw "ERROR in forEachBook: parameter not a fucntion"; } - for (const hLang in json) { //for each human language + for (const hLang in json) { + //for each human language if (Array.isArray(hLang.sections)) { //check if sections is an array hLang.sections.forEach(