Skip to content

Commit

Permalink
fix some formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
SuttonKyle committed Jun 7, 2024
1 parent 2a8743c commit 6cf9ab7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/base.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { GlobalWorkerOptions, PDFDocumentProxy, PDFPageProxy, PageViewport, getDocument, renderTextLayer,} from 'pdfjs-dist/legacy/build/pdf.mjs';
import { GlobalWorkerOptions, PDFDocumentProxy, PDFPageProxy, PageViewport, getDocument, renderTextLayer } from 'pdfjs-dist/legacy/build/pdf.mjs';
import type { TextContent } from 'pdfjs-dist/types/src/display/api';

const chevronLeft = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-chevron-left" viewBox="0 0 16 16">
Expand Down Expand Up @@ -271,7 +271,6 @@ export const renderDocument = (workerSrc: string) => (containerDiv: Element) =>
(() => globalThis)();
new File([], 'test.txt');
GlobalWorkerOptions.workerSrc = workerSrc;

renderPDF(containerDiv, documentUrl);
} catch (err) {
renderErrorMessage(containerDiv)('Your browser does not support showing PDF previews. Click the download button to view this document.');
Expand Down

0 comments on commit 6cf9ab7

Please sign in to comment.