Skip to content

Commit

Permalink
Merge pull request #197 from cachho/fix/FindslyLink
Browse files Browse the repository at this point in the history
fix: findsly link
  • Loading branch information
cachho authored Dec 4, 2024
2 parents 32d706c + f5b0538 commit fb69d40
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {

import { Button } from './components';
import { Config } from './Config';
import { getQcAvailable } from './lib/api/getQcAvailable';
import { findslyMappings, getQcAvailable } from './lib/api/getQcAvailable';
import {
addObserver,
handleExceptionElements,
Expand Down Expand Up @@ -46,7 +46,9 @@ const BodyElement = (settings: Settings, agent?: Agent) => {

const QC = (link: CnLink) => {
const qc = Button(
`${Config.host.qc}/qc?url=${encodeURIComponent(link.as('raw').href)}`
`https://finds.ly/product/${findslyMappings.get(link.marketplace)}/${
link.id
}`
);
qc.innerText = `📷 QC Pics available`;
return qc;
Expand Down

0 comments on commit fb69d40

Please sign in to comment.