Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
/* istanbul ignore if */
if (error) {
throw error;
}
});
} else if (tag === 'img') {
QRCode.toDataURL(value, options, (error, url) => {
/* istanbul ignore if */
if (error) {
throw error;
}
this.$el.src = url;
});
} else {
QRCode.toString(value, options, (error, string) => {
/* istanbul ignore if */
if (error) {
throw error;
}
this.$el.innerHTML = string;
});
}
},
},