mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-01-17 22:38:33 +01:00
Fix typos.
This commit is contained in:
parent
7c5afd8029
commit
d7517d8f6d
@ -515,7 +515,7 @@ Tomahawk.ajax = function(url, settings) {
|
|||||||
var contentType;
|
var contentType;
|
||||||
if (settings.dataType === 'json') {
|
if (settings.dataType === 'json') {
|
||||||
contentType = 'application/json';
|
contentType = 'application/json';
|
||||||
} else if (contentType = 'xml') {
|
} else if (contentType === 'xml') {
|
||||||
contentType = 'text/xml';
|
contentType = 'text/xml';
|
||||||
} else {
|
} else {
|
||||||
contentType = xhr.getResponseHeader('Content-Type');
|
contentType = xhr.getResponseHeader('Content-Type');
|
||||||
@ -539,7 +539,7 @@ Tomahawk.post = function(url, settings) {
|
|||||||
settings = url;
|
settings = url;
|
||||||
} else {
|
} else {
|
||||||
settings = settings || {};
|
settings = settings || {};
|
||||||
settings: url;
|
settings.url = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
settings.method = 'POST';
|
settings.method = 'POST';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user