Skip to content

Commit

Permalink
fix: update Adobe Stock
Browse files Browse the repository at this point in the history
  • Loading branch information
dessant committed Aug 6, 2022
1 parent b2c8381 commit 49a0897
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/engines/adobestock.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@ import {setFileInputData, initSearch, sendReceipt} from 'utils/engines';
const engine = 'adobestock';

async function search({session, search, image, storageIds}) {
(await findNode('button.js-camera-icon')).click();
(await findNode('button[aria-label="Visual Search"]')).click();

const inputSelector = '#js-vsupload';
const inputSelector = 'input[type=file]';
const input = await findNode(inputSelector);

await setFileInputData(inputSelector, input, image);

await sendReceipt(storageIds);

input.dispatchEvent(new Event('change'));
input.dispatchEvent(new Event('change', {bubbles: true}));
}

function init() {
Expand Down

0 comments on commit 49a0897

Please sign in to comment.