1
0
Fork 0

maybe upgrade qrscanner to not use a worker

This commit is contained in:
ChaotiCryptidz 2022-04-24 13:04:58 +01:00
parent 013e6ceb7a
commit 75e096f6b5
No known key found for this signature in database

View file

@ -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 { Component, JSX, createRef } from "preact";
import { Margin } from "./Margin"; import { Margin } from "./Margin";
import QrScanner from "qr-scanner"; import QrScanner from "qr-scanner";