Skip to content

Commit

Permalink
Set the $aosWrapper variable correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
eddiesigner committed Aug 11, 2019
1 parent 4f90657 commit 7dc2844
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion assets/js/post.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,5 +54,5 @@
"desktop": "assets/screenshot-desktop.jpg",
"mobile": "assets/screenshot-mobile.jpg"
},
"version": "0.2.0"
"version": "0.2.1"
}
3 changes: 2 additions & 1 deletion src/js/post.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import stickybits from 'stickybits'
import mediumZoom from 'medium-zoom'
import fitvids from 'fitvids'

let $aosWrapper = null
let $progressCircle = null
let lastScrollingY = window.pageYOffset
let lastWindowHeight = 0
Expand Down Expand Up @@ -101,7 +102,7 @@ function prepareProgressCircle() {
}

$(document).ready(() => {
const $aosWrapper = $('.js-aos-wrapper')
$aosWrapper = $('.js-aos-wrapper')
const $scrollButton = $('.js-scrolltop')
const $loadComments = $('.js-load-comments')
const $commentsIframe = $('.js-comments-iframe')
Expand Down

0 comments on commit 7dc2844

Please sign in to comment.