Skip to content

Commit

Permalink
Merge pull request #318 from cosmos/jordan/294-scroll-bug
Browse files Browse the repository at this point in the history
no more console errors from resizing window
  • Loading branch information
faboweb authored Jan 4, 2018
2 parents 8e34144 + 55ad677 commit 074696a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/src/renderer/components/common/NiPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ export default {
if (this.config.desktop) {
const container = this.$el.querySelector('.ni-page-main')
this.ps = new PerfectScrollbar(container)
// console.log('its desktop', this.ps)
} else if (this.ps.destroy) {
} else if (this.ps) {
this.ps.destroy()
this.ps = null
// console.log('its not desktop', this.ps)
}
}
},
Expand Down

0 comments on commit 074696a

Please sign in to comment.