Skip to content

Commit

Permalink
fixed production bug with pdfjs
Browse files Browse the repository at this point in the history
  • Loading branch information
dpittman7 committed Jan 26, 2023
1 parent b5c4020 commit 820840d
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Empty file.
2 changes: 2 additions & 0 deletions obj/Release/pittman_react.esproj.FileListAbsolute.txt
@@ -0,0 +1,2 @@
C:\Users\PC\source\repos\pittman_portfolio\pittman_react\obj\Release\pittman_react.esproj.SuggestedBindingRedirects.cache
C:\Users\PC\source\repos\pittman_portfolio\pittman_react\obj\Release\pittman_react.esproj.CoreCompileInputs.cache
Empty file.
8 changes: 3 additions & 5 deletions src/components/Resume.js
@@ -1,14 +1,12 @@
import React, { Component } from 'react'
import { Document, Page } from 'react-pdf/dist/esm/entry.webpack5';
import { Document, Page, pdfjs } from 'react-pdf/dist/esm/entry.webpack'
import DPResume from '../images/resume/PittmanDeanta_Resume_Jan2023.pdf'

const url = `//cdn.jsdelivr.net/npm/pdfjs-dist@${pdfjs.version}/build/pdf.worker.min.js`
pdfjs.GlobalWorkerOptions.workerSrc = url


export class Resume extends Component {




render()
{
return (
Expand Down

0 comments on commit 820840d

Please sign in to comment.