removed all alerts
This commit is contained in:
parent
b138887371
commit
b6c94f23de
5 changed files with 6 additions and 75 deletions
|
@ -130,7 +130,7 @@ function(HostApp, Paths, Hmac) {
|
|||
Paths.getURL(url, http_method, callback, requestBody, auth_header);
|
||||
|
||||
} else {
|
||||
alert("State is not the same: {" + this.state + "} vs {" + urlVars["state"] + "}")
|
||||
console.error("State is not the same: {" + this.state + "} vs {" + urlVars["state"] + "}")
|
||||
}
|
||||
|
||||
this.state = null; // reset the state
|
||||
|
|
|
@ -81,8 +81,7 @@ function(Core, Paths, HostApp, URI) {
|
|||
those.newStatus(json);
|
||||
|
||||
} catch (e) {
|
||||
//alert(resp.responseText);
|
||||
alert(url + " JSON parse error");
|
||||
console.error(url + " JSON parse error");
|
||||
throw e;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -284,8 +284,8 @@ function(jQuery, Paths, URI, HostApp, Followings) {
|
|||
}
|
||||
},
|
||||
error:function (xhr, ajaxOptions, thrownError) {
|
||||
alert(xhr.status);
|
||||
alert(thrownError);
|
||||
console.error(xhr.status);
|
||||
console.error(thrownError);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
|
|
@ -70,13 +70,13 @@ var console = {
|
|||
__console.error(s);
|
||||
}
|
||||
},
|
||||
warning: function (s) {
|
||||
warn: function (s) {
|
||||
if (OS_TYPE == "mac") {
|
||||
alert("WARNING: " + s);
|
||||
} else {
|
||||
__console.warning(s);
|
||||
}
|
||||
}
|
||||
},
|
||||
notice: function(s) {
|
||||
if (OS_TYPE == "mac") {
|
||||
alert("NOTICE: " + s);
|
||||
|
|
Reference in a new issue