Skip to content

Commit

Permalink
Resolve #71: Backspace should not trigger go-back in firefox, hide gl…
Browse files Browse the repository at this point in the history
…obal stats page
  • Loading branch information
big213 committed Jul 9, 2020
1 parent 92f4292 commit 42a6e49
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/overlay/cubeTimerOverlay.vue
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ export default {
//if the overlay is not triggered, trigger it
if (this.timerState != 5) this.timerState = 5
} else if (e.key == 'Backspace') {
//prevent the default "go back" behavior in certain browsers
e.preventDefault()
this.inputs.manualTime = this.inputs.manualTime.slice(0, -1)
}
} else if (e.code) {
Expand Down
2 changes: 2 additions & 0 deletions layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -303,11 +303,13 @@ export default {
title: 'Competitions',
to: '/competitions',
},
/*
{
icon: 'mdi-format-list-numbered',
title: 'Global Stats',
to: '/stats',
},
*/
],
accountItems: [
Expand Down

0 comments on commit 42a6e49

Please sign in to comment.