Skip to content

Commit

Permalink
corrected operator
Browse files Browse the repository at this point in the history
  • Loading branch information
WeatherfordAaron committed Aug 20, 2024
1 parent bf0d18b commit 9805d88
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions src/components/drivers/pdf-viewer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export default class PDFDriver extends React.Component {

componentWillUnmount() {
// Only utilize PDFJS.getDocument() if isEvalSupported == false.
if (PDFJS.isEvalSupported == false) {
if (PDFJS.isEvalSupported === false) {
const { pdf } = this.state
if (pdf) {
pdf.destroy()
Expand Down Expand Up @@ -194,22 +194,19 @@ export default class PDFDriver extends React.Component {
<button
type="button"
className="view-control"
onClick={this.increaseZoom}
>
onClick={this.increaseZoom}>
<i className="zoom-in" />
</button>
<button
type="button"
className="view-control"
onClick={this.resetZoom}
>
onClick={this.resetZoom}>
<i className="zoom-reset" />
</button>
<button
type="button"
className="view-control"
onClick={this.reduceZoom}
>
onClick={this.reduceZoom}>
<i className="zoom-out" />
</button>
</div>
Expand Down

0 comments on commit 9805d88

Please sign in to comment.