Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async clip(target) {
if (target.length === 0) {
return;
}
this.styles = new StyletronCore();
const selector = selectorQuery(target[0]);
const clone = await this.visitNode(target);
await downloadAsFile(this.buildFinalHTML(clone, selector));
},