Skip to content

Commit

Permalink
Fixed important bug
Browse files Browse the repository at this point in the history
  • Loading branch information
emrecoban committed Apr 5, 2023
1 parent 60719e0 commit 83935c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"manifest_version": 3,
"name": "E-Devlet Favoriler",
"name": "e-Devlet Favoriler",
"description": "turkiye.gov.tr'de kullanıcıların favori işlemlerini arama kutusunun altında listelemektedir.",
"version": "1.1",
"version": "1.2",
"icons": {
"16": "src/img/icon128.png",
"32": "src/img/icon128.png",
Expand Down
4 changes: 2 additions & 2 deletions src/content/content.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import "./content.css";

async function fetchFavs() {
try {
const favsHTML = await (await fetch("/favori-hizmetlerim")).text();
const favsHTML = await (await fetch("https://turkiye.gov.tr/favori-hizmetlerim")).text();
const $ = cheerio.load(favsHTML);
$("a.boxList_close").remove();
$("img").remove();
Expand All @@ -22,7 +22,7 @@ if (searchBlock) {
const favsEl = [];
favList.get().map((item) => {
favsEl.push(
`<li class="favItem"><a href='${item.children[2].attribs.href}'>${item.children[2].children[2].children[1].children[0].data}</a></li>`
`<li class="favItem"><a href='${item?.children[2]?.attribs?.href}'>${item?.children[2]?.children[2]?.children[1]?.children[0]?.data}</a></li>`
);
});
emFirst.innerHTML = `<ul id="favBox">${favsEl.splice(0, 9).join("")}</ul>`;
Expand Down

0 comments on commit 83935c9

Please sign in to comment.