Skip to content

Commit

Permalink
Try to fix the deviceprops.json not loading
Browse files Browse the repository at this point in the history
  • Loading branch information
dkeppler committed May 13, 2024
1 parent fdd5ce8 commit f9e399b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
File renamed without changes.
2 changes: 1 addition & 1 deletion loadRelated.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down
2 changes: 1 addition & 1 deletion threatModelNew.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit f9e399b

Please sign in to comment.