This website works better with JavaScript.
Home
Explore
Help
Sign In
aagez
/
nexus-timers
Watch
1
Star
1
Fork
0
Code
Issues
4
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
🐛
: fix timer drop to negative if reset time is 0
master
Adrien
4 years ago
parent
04637fdd91
commit
a7f468888b
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
src/components/Battleground/Timer.vue
+ 2
- 1
src/components/Battleground/Timer.vue
View File
@@ -18,9 +18,10 @@
startTimer: function () {
this.stopTimer()
this.timerIntervalId = setInterval(() => {
this.currentTime--
if (this.currentTime === 0) {
this.stopTimer()
} else {
this.currentTime--
}
}, 1000)
},
Write
Preview
Loading…
Cancel
Save