Skip to content

Commit

Permalink
directly modified @crxjs/vite-plugin in node_modules/ to stop vite fr…
Browse files Browse the repository at this point in the history
…om capturing /_favicon/ request crxjs/chrome-extension-tools#618
  • Loading branch information
HarryYu02 committed Apr 26, 2024
1 parent f8f0a24 commit 00609b5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/components/ListItem.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { Badge } from "@/components/ui/badge";
import { capitalizeFirstLetter, cn } from "@/lib/utils";
import { capitalizeFirstLetter, cn, faviconURL } from "@/lib/utils";
import { CommandItem } from "./ui/command";
import { FaBookmark } from "react-icons/fa6";
import { IconType } from "react-icons";

interface BookmarkItem {
Expand Down Expand Up @@ -84,7 +83,12 @@ const ListItem = ({
{type === "command" ? (
<item.icon className="size-6" />
) : type === "bookmark" ? (
<FaBookmark className="size-6" />
// <FaBookmark className="size-6" />
<img
src={faviconURL(item.url ?? "")}
className="size-6"
alt={`${item.title}-favicon`}
/>
) : (
<img
src={item.favIconUrl}
Expand Down
2 changes: 2 additions & 0 deletions src/components/SearchingList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ const SearchingList = () => {
label="BookTab"
value={currentItem}
onValueChange={setCurrentItem}
disablePointerSelection
vimBindings
>
<CommandInput
autoFocus
Expand Down

0 comments on commit 00609b5

Please sign in to comment.