Skip to content

Commit

Permalink
Disabled auto-hide on donate modal
Browse files Browse the repository at this point in the history
  • Loading branch information
ajm13 committed Oct 8, 2019
1 parent 673778c commit 65d2aef
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/views/Visualizer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,17 +136,20 @@ export default {
},
displayDonate(force = false) {
clearTimeout(this.userActiveTO)
this.showDonate = force || this.settings.showDonate
this.donateNumShow++
},
detectedActive() {
this.userActive = true
clearTimeout(this.userActiveTO)
const delay = this.showDonate ? 7000 : 2000
this.userActiveTO = setTimeout(() => {
this.userActive = false
}, delay)
this.userActive = true
if (!this.showDonate) {
this.userActiveTO = setTimeout(() => {
this.userActive = false
}, 2000)
}
},
manageAutoQIV() {
Expand Down

0 comments on commit 65d2aef

Please sign in to comment.