react-pdf-js
Advanced tools
Comparing version 2.0.4 to 2.0.5
@@ -198,4 +198,4 @@ 'use strict'; | ||
var newDocInit = newProps.documentInitParameters.url ? newProps.documentInitParameters.url : null; | ||
var docInit = this.props.documentInitParameters.url ? this.props.documentInitParameters.url : null; | ||
var newDocInit = newProps.documentInitParameters && newProps.documentInitParameters.url ? newProps.documentInitParameters.url : null; | ||
var docInit = this.props.documentInitParameters && this.props.documentInitParameters.url ? this.props.documentInitParameters.url : null; | ||
@@ -202,0 +202,0 @@ // Only reload if the most significant source has changed! |
{ | ||
"name": "react-pdf-js", | ||
"version": "2.0.4", | ||
"version": "2.0.5", | ||
"description": "A React component to wrap PDF.js", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -125,5 +125,5 @@ import React from 'react'; | ||
const newDocInit = newProps.documentInitParameters.url ? | ||
const newDocInit = (newProps.documentInitParameters && newProps.documentInitParameters.url) ? | ||
newProps.documentInitParameters.url : null; | ||
const docInit = this.props.documentInitParameters.url ? | ||
const docInit = (this.props.documentInitParameters && this.props.documentInitParameters.url) ? | ||
this.props.documentInitParameters.url : null; | ||
@@ -130,0 +130,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75351
3731983