LoginWithQR: Use JSQR NPM

This commit is contained in:
thororen1234 2024-07-22 12:49:21 -04:00
parent e874012b61
commit 25e9249d59
6 changed files with 13 additions and 10143 deletions

View file

@ -14,16 +14,6 @@ import { ReactElement } from "react";
import { cl, QrCodeCameraIcon } from "./ui";
import openQrModal from "./ui/modals/QrModal";
export let jsQR: (img: Uint8ClampedArray, width: number, height: number) => {
binaryData: number[];
data: string;
chunks: any[];
version: number;
location: object;
};
import("./jsQR.js").then(x => (jsQR = x.default));
export default definePlugin({
name: "LoginWithQR",
description: "Allows you to login to another device by scanning a login QR code, just like on mobile!",

File diff suppressed because it is too large Load diff

View file

@ -22,8 +22,8 @@ import {
useRef,
useState,
} from "@webpack/common";
import jsQR from "jsqr";
import { jsQR } from "../../";
import { cl, Spinner, SpinnerTypes } from "..";
import openVerifyModal from "./VerifyModal";