Skip to content

Commit 741c2eb

Browse files
author
Test User
committed
Fix build errors: remove unused useLocation and invalid pdfjs option
1 parent 73e0d23 commit 741c2eb

2 files changed

Lines changed: 1 addition & 2 deletions

File tree

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import {
1414
RotateCw, Type, Hash, Tags, FileText, ArrowUpDown, PenTool,
1515
Wrench, ImagePlus, FileImage, Palette, X, ChevronDown
1616
} from 'lucide-react'
17-
import { HashRouter, Routes, Route, useNavigate, useLocation } from 'react-router-dom'
17+
import { HashRouter, Routes, Route, useNavigate } from 'react-router-dom'
1818
import { Toaster, toast } from 'sonner'
1919
import { Capacitor } from '@capacitor/core'
2020
import { Filesystem } from '@capacitor/filesystem'

src/utils/pdfHelpers.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,6 @@ export const unlockPdf = async (file: File, password: string): Promise<PdfMetaDa
305305
password: password,
306306
cMapUrl: getCMapUrl(),
307307
cMapPacked: true,
308-
ignoreEncryption: false,
309308
});
310309

311310
const pdf = await loadingTask.promise;

0 commit comments

Comments
 (0)