maybe upgrade qrscanner to not use a worker
This commit is contained in:
parent
013e6ceb7a
commit
75e096f6b5
|
@ -1,11 +1,3 @@
|
|||
/* eslint-disable import/no-unresolved */
|
||||
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
||||
// @ts-ignore
|
||||
import qrScannerWorkerSource from "!!raw-loader!qr-scanner/qr-scanner-worker.min.js";
|
||||
QrScanner.WORKER_PATH = URL.createObjectURL(new Blob([qrScannerWorkerSource]));
|
||||
// end ignore
|
||||
/* eslint-enable */
|
||||
|
||||
import { Component, JSX, createRef } from "preact";
|
||||
import { Margin } from "./Margin";
|
||||
import QrScanner from "qr-scanner";
|
||||
|
|
Loading…
Reference in a new issue