We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fda93dd commit 07162c6Copy full SHA for 07162c6
modules/infinite-scroll/infinity.js
@@ -202,6 +202,10 @@
202
var blog = document.getElementById( 'infinity-blog-title' );
203
var self = this;
204
205
+ if ( ! blog ) {
206
+ return;
207
+ }
208
+
209
blog.setAttribute( 'title', totop );
210
blog.addEventListener( 'click', function( e ) {
211
var sourceScroll = self.window.pageYOffset;
@@ -223,7 +227,12 @@
223
227
footerContainer,
224
228
width,
225
229
sourceBottom,
226
- targetBottom;
230
+ targetBottom,
231
+ footerEnabled = this.footer && this.footer.el;
232
233
+ if ( ! footerEnabled ) {
234
235
236
237
// Check if we have an id for the page wrapper
238
if ( 'string' === typeof this.footer.wrap ) {
0 commit comments