mirror of
https://github.com/felipegcoutinho/openmonetis.git
synced 2026-07-09 03:16:01 +00:00
chore: atualiza dependencias e build de PDF
This commit is contained in:
@@ -32,7 +32,7 @@ function PdfCanvas({ url }: PdfCanvasProps) {
|
||||
|
||||
let pdf: Awaited<ReturnType<typeof pdfjsLib.getDocument>["promise"]>;
|
||||
try {
|
||||
pdf = await pdfjsLib.getDocument(url).promise;
|
||||
pdf = await pdfjsLib.getDocument({ url }).promise;
|
||||
} catch (err) {
|
||||
if ((err as { name?: string }).name === "PasswordException") {
|
||||
if (!cancelled) setLocked(true);
|
||||
|
||||
Reference in New Issue
Block a user