mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 14:16:32 +02:00
Show correct method in asyncRequest
This commit is contained in:
@@ -301,7 +301,7 @@ Tomahawk.asyncRequest = function (url, callback, extraHeaders, options) {
|
|||||||
if (xmlHttpRequest.readyState == 4 && xmlHttpRequest.status == 200) {
|
if (xmlHttpRequest.readyState == 4 && xmlHttpRequest.status == 200) {
|
||||||
callback.call(window, xmlHttpRequest);
|
callback.call(window, xmlHttpRequest);
|
||||||
} else if (xmlHttpRequest.readyState === 4) {
|
} else if (xmlHttpRequest.readyState === 4) {
|
||||||
Tomahawk.log("Failed to do GET request: to: " + url);
|
Tomahawk.log("Failed to do " + method + " request: to: " + url);
|
||||||
Tomahawk.log("Status Code was: " + xmlHttpRequest.status);
|
Tomahawk.log("Status Code was: " + xmlHttpRequest.status);
|
||||||
if (opt.hasOwnProperty('errorHandler')) {
|
if (opt.hasOwnProperty('errorHandler')) {
|
||||||
opt.errorHandler.call(window, xmlHttpRequest);
|
opt.errorHandler.call(window, xmlHttpRequest);
|
||||||
|
Reference in New Issue
Block a user