Skip to content

Function: removeAllHighlights()

ts
function removeAllHighlights(): Promise<void>;

Defined in: src/highlight/highlightElement.tsx:255

Remove all active highlights from the page.

Returns

Promise<void>

Example

ts
await highlightElement(ctx, '.price-tag', { color: '#E91E63' });
await highlightElement(ctx, '.discount-label', { color: '#4CAF50' });
// Clear everything
await removeAllHighlights();

Matterway Assistant SDK Documentation