Skip to content

Commit

Permalink
changed crate url references
Browse files Browse the repository at this point in the history
  • Loading branch information
cedricdcc committed Oct 24, 2023
1 parent 2e1c8f1 commit 9c108ba
Showing 1 changed file with 2 additions and 14 deletions.
16 changes: 2 additions & 14 deletions src/components/crates.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,13 @@ export const Crates = (props) => {
const crateClick = (crate) => {
//go to crate.url
console.log(crate);
if (crate.index) {
window.location.href = "#"+crate.url;
}
else {
//open a new tab
window.open(crate.url, "_blank");
}
window.open(crate.crateurl, "_blank");
}

const githubClick = (crate) => {
//go to crate.url
console.log(crate);
if (crate.index) {
window.location.href = "#"+crate.url;
}
else {
//open a new tab
window.open(crate.github_url, "_blank");
}
window.open(crate.url, "_blank");
}

return (
Expand Down

0 comments on commit 9c108ba

Please sign in to comment.