mirror of
https://github.com/nkcmr/HyperTab.git
synced 2026-05-21 15:17:13 +02:00
fix: unused parameter on favicon function
This commit is contained in:
+2
-2
@@ -167,7 +167,7 @@ const HighlightMatches: FunctionComponent<{
|
|||||||
// });
|
// });
|
||||||
// }
|
// }
|
||||||
|
|
||||||
function faviconURL(t: chrome.tabs.Tab, size: number): string | undefined {
|
function faviconURL(t: chrome.tabs.Tab): string | undefined {
|
||||||
return (
|
return (
|
||||||
t.favIconUrl ??
|
t.favIconUrl ??
|
||||||
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
|
"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mNkYAAAAAYAAjCB0C8AAAAASUVORK5CYII="
|
||||||
@@ -561,7 +561,7 @@ const Popup: FunctionComponent = () => {
|
|||||||
<TabListEmpty>No Results Found</TabListEmpty>
|
<TabListEmpty>No Results Found</TabListEmpty>
|
||||||
) : null}
|
) : null}
|
||||||
{searchResults.map((t, i) => {
|
{searchResults.map((t, i) => {
|
||||||
const favicURL = faviconURL(t.item, 32);
|
const favicURL = faviconURL(t.item);
|
||||||
const showCloseAction = tabHover === t.item.id! && !t.item.pinned;
|
const showCloseAction = tabHover === t.item.id! && !t.item.pinned;
|
||||||
return (
|
return (
|
||||||
<TabItem
|
<TabItem
|
||||||
|
|||||||
Reference in New Issue
Block a user