diff --git a/_data/deviceprops.json b/assets/deviceprops.json similarity index 100% rename from _data/deviceprops.json rename to assets/deviceprops.json diff --git a/loadRelated.js b/loadRelated.js index 7917e1d..e3090bc 100644 --- a/loadRelated.js +++ b/loadRelated.js @@ -2,7 +2,7 @@ var threatData; //Load the json file that contains the threat and device properties mapping window.onload = (event) => { - fetch('../_data/deviceprops.json') + fetch('/assets/deviceprops.json') .then((res) => { if (!res.ok) { throw new Error(`HTTP error! Status: ${res.status}`); diff --git a/threatModelNew.js b/threatModelNew.js index 9166c6a..4f8a7a5 100644 --- a/threatModelNew.js +++ b/threatModelNew.js @@ -2,7 +2,7 @@ var threatData; var rows = []; //Load the json file that contains the threat and device properties mapping -fetch('../_data/deviceprops.json') +fetch('/assets/deviceprops.json') .then((res) => { if (!res.ok) { throw new Error(`HTTP error! Status: ${res.status}`);