Skip to content

Commit e4bb450

Browse files
committed
update error when adding Parallax elements before intializing the parallax scroller
1 parent 5360db1 commit e4bb450

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/Parallax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export default class Parallax extends Component {
2929
componentDidMount() {
3030
// add this Parallax element to the global listener
3131
if (typeof ParallaxScrollListener === 'undefined') {
32-
throw new Error('Must import/require the global ParallaxScrollListener before adding React Parallax components.');
32+
throw new Error('Must initialize the ParallaxScroller before adding React Parallax components.');
3333
}
3434
// create a new parallax element and save the reference
3535
this.element = ParallaxScrollListener.createElement({

0 commit comments

Comments
 (0)