mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-16 18:07:02 -04:00
LoginWithQR: Use JSQR NPM
This commit is contained in:
parent
e874012b61
commit
25e9249d59
6 changed files with 13 additions and 10143 deletions
|
@ -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
|
@ -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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue