react-cloudimage-responsive
Advanced tools
Comparing version 1.6.4 to 1.6.5
@@ -170,7 +170,5 @@ 'use strict'; | ||
value: function componentDidMount() { | ||
if (typeof window === 'undefined') { | ||
return; | ||
if (typeof window !== 'undefined') { | ||
this.processBackground(); | ||
} | ||
this.processBackground(); | ||
} | ||
@@ -180,7 +178,5 @@ }, { | ||
value: function componentDidUpdate(prevProps) { | ||
if (typeof window === 'undefined') { | ||
return; | ||
if (typeof window !== 'undefined') { | ||
if (prevProps.config.innerWidth !== this.props.config.innerWidth || this.props.src !== prevProps.src) this.processBackground(); | ||
} | ||
if (prevProps.config.innerWidth !== this.props.config.innerWidth || this.props.src !== prevProps.src) this.processBackground(); | ||
} | ||
@@ -187,0 +183,0 @@ }, { |
@@ -148,7 +148,5 @@ 'use strict'; | ||
value: function componentDidUpdate(prevProps) { | ||
if (typeof window === 'undefined') { | ||
return; | ||
if (typeof window !== 'undefined') { | ||
if (prevProps.config.innerWidth !== this.props.config.innerWidth || this.props.src !== prevProps.src) this.processImage(); | ||
} | ||
if (prevProps.config.innerWidth !== this.props.config.innerWidth || this.props.src !== prevProps.src) this.processImage(); | ||
} | ||
@@ -155,0 +153,0 @@ }, { |
{ | ||
"name": "react-cloudimage-responsive", | ||
"version": "1.6.4", | ||
"version": "1.6.5", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "description": "Cloudimage Responsive will smartly resize, compress and accelerate images across the World in your site for all devices. The plugin supports lazy loading technique with fancy animation on image load.", |
53984
775