Skip to content

Commit

Permalink
Update settings.js
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilopaterHany authored Nov 9, 2023
1 parent 306a663 commit 82254e8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ window.addEventListener("load", () => {
} else {
fetch("json/profile.json")
.then((response) => response.json())
.then((data) => emailInput.value = data.personal.email);
.then((data) => emailInput.value = data.personal.email)
.catch((error) => console.error("Fetch error:", error));
}
});

Expand All @@ -28,7 +29,7 @@ fetch("json/profile.json")
githubInputUserName.value = data.social.github;
twitterInputUserName.value = data.social.twitter;
linkedinInputUserName.value = data.social.linkedin;
});
}).catch((error) => console.error("Fetch error:", error));

changeEmailBtn.addEventListener("click", () => {
emailInput.disabled = false;
Expand Down

0 comments on commit 82254e8

Please sign in to comment.