Switch to qrcode-generator library

This commit is contained in:
Evan Hahn 2022-01-05 11:59:59 -06:00 committed by GitHub
parent 17bee00821
commit c8d32f0327
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 155 additions and 696 deletions

29
ts/window.d.ts vendored
View file

@ -1,4 +1,4 @@
// Copyright 2020-2021 Signal Messenger, LLC
// Copyright 2020-2022 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
// Captures the globals put in place by preload.js, background.js and others
@ -131,32 +131,6 @@ type ConfirmationDialogViewProps = {
resolve: () => void;
};
declare enum QRCodeCorrectLevel {
H = 2,
L = 1,
M = 0,
Q = 3,
}
declare class QRCode {
static CorrectLevel: typeof QRCodeCorrectLevel;
constructor(
el: HTMLElement | string,
vOption?:
| string
| {
colorDark?: string;
colorLight?: string;
correctLevel?: QRCodeCorrectLevel;
height?: number;
text?: string;
width?: number;
}
);
makeCode(sText: string): void;
clear(): void;
}
export declare class WebAudioRecorderClass {
constructor(
node: GainNode,
@ -292,7 +266,6 @@ declare global {
updateTrayIcon: (count: number) => void;
Backbone: typeof Backbone;
CI?: CI;
QRCode: typeof QRCode;
Accessibility: {
reducedMotionSetting: boolean;