commit | 57f3ca9076afc4942f8bbad84c93835b40322c4e | [log] [tgz] |
---|---|---|
author | Andreu <andreuhuguet@gmail.com> | Wed Sep 18 19:40:42 2019 +0200 |
committer | Andreu <andreuhuguet@gmail.com> | Wed Sep 18 19:40:42 2019 +0200 |
tree | c230188f29b67cb53b7653e0f94b1bf7da554235 | |
parent | 66ad5cf4fedd8ee54ab6594e7b09a8720846e1d8 [diff] [blame] |
Deny requests
diff --git a/js/utils.js b/js/utils.js index 8c436fd..5886883 100644 --- a/js/utils.js +++ b/js/utils.js
@@ -11,9 +11,7 @@ 'type': 'GET', 'dataType': 'json', 'data': { 'id': id, 'msg': msg }, - 'success': function(data) { alert("S'ha avisat a l'altre jugador"); }, - 'error': function(xhr, status, error) { - alert(xhr.responseText); - } + 'success': function(data) { console.log('Success'); }, + 'error': function(xhr, status, error) {} }); }