qrcode-reader-vue3
Version:
A set of Vue.js components for detecting and decoding QR codes.
26 lines (20 loc) • 575 B
JavaScript
export class DropImageFetchError extends Error {
constructor() {
super("can't process cross-origin image");
this.name = "DropImageFetchError";
}
}
export class StreamApiNotSupportedError extends Error {
constructor() {
super("this browser has no Stream API support");
this.name = "StreamApiNotSupportedError";
}
}
export class InsecureContextError extends Error {
constructor() {
super(
"camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP."
);
this.name = "InsecureContextError";
}
}