Don't update while cooling down

This commit is contained in:
Thomas Wade 2018-10-06 21:29:32 +09:30
parent 6023f37f2d
commit 320dc7290c

View File

@ -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) =>
{