Skip to content

Commit

Permalink
Merge pull request #38 from Gwenillia/fix/Timeouts
Browse files Browse the repository at this point in the history
remove logs and fix timeout
  • Loading branch information
Gwenillia authored Jan 6, 2023
2 parents 20c665d + 2c1c0cd commit de9a849
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions moreInfos.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,10 @@ function moreInfos() {
infoDiv.style.margin = ".25em 0";
infoDiv.style.color = "#993322";

console.log(communauteLocation);
// if (elevageLocation || sellsLocation) {
if (!boxesLocation && locationAllowed) {
console.log("location not box");
const blupHtml = data.match(regexpBlupHtml);
const PetHtml =
data.match(regexpPetHtmlOthers) || data.match(regexpPetHtmlSelf);
console.log(PetHtml);
if (blupHtml) {
const blupFloat = blupHtml[0].match(regexpFloat);
parseHTML(
Expand All @@ -95,9 +91,7 @@ function moreInfos() {
);
}
if (PetHtml) {
console.log(PetHtml);
const PetName = PetHtml[0].match(regexpValue);
console.log(PetName);
parseHTML(
infoDiv,
`<p><span style='font-weight: bold;'>${
Expand Down Expand Up @@ -169,9 +163,9 @@ setTimeout(() => {
searchBtnCommunaute.addEventListener("click", () => {
setTimeout(() => {
moreInfos();
}, 250);
}, 300);
});
}, 250);
}, 400);

setTimeout(() => {
moreInfos();
Expand Down

0 comments on commit de9a849

Please sign in to comment.