From 9c108ba62d508572eca0c84658e8fbb64f0a5348 Mon Sep 17 00:00:00 2001 From: cedricdcc <30471340+cedricdcc@users.noreply.github.com> Date: Tue, 24 Oct 2023 16:21:57 +0200 Subject: [PATCH] changed crate url references --- src/components/crates.jsx | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/src/components/crates.jsx b/src/components/crates.jsx index 42a8766..cccfc56 100644 --- a/src/components/crates.jsx +++ b/src/components/crates.jsx @@ -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 (