Don't update while cooling down
This commit is contained in:
parent
6023f37f2d
commit
320dc7290c
@ -22,6 +22,9 @@ app.controller("mates", ["$scope", "$http", "$interval", function($scope, $http,
|
||||
|
||||
$scope.countClick = () =>
|
||||
{
|
||||
// Don't bother updating during a cooldown
|
||||
if ($scope.cooldown) return;
|
||||
|
||||
$http.post("/mates")
|
||||
.then((r) =>
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user