Skip to content

Commit

Permalink
Change the relative path to absolute path for gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
M-AminAlizadeh committed Feb 2, 2024
1 parent e0b5fe5 commit e41d461
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/fetchProjects.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const portfolio = document.querySelector('#portfolio');

const projects = async () => {
const response = await fetch('../data.json');
const response = await fetch('/Portfolio/data.json');
const json = await response.json();
return json.projects;
};
Expand Down

0 comments on commit e41d461

Please sign in to comment.