diff --git a/openlibrary/plugins/openlibrary/js/readmore.js b/openlibrary/plugins/openlibrary/js/readmore.js index 6f4a2fead83..37f9fd03341 100644 --- a/openlibrary/plugins/openlibrary/js/readmore.js +++ b/openlibrary/plugins/openlibrary/js/readmore.js @@ -19,7 +19,7 @@ export class ReadMoreComponent { attach() { this.$readMoreButton.addEventListener('click', this.readMoreClick); this.$readLessButton.addEventListener('click', this.readLessClick); - window.addEventListener('resize', debounce(() => this.reset()), 50); + window.addEventListener('resize', debounce(() => this.reset(), 50)); this.reset(); }