1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

move completely to fetch

This commit is contained in:
Luke Pulverenti 2015-11-28 03:07:44 -05:00
parent ee899a7332
commit 9932bc3eb5
168 changed files with 948 additions and 945 deletions

View file

@ -123,24 +123,24 @@
} else {
promise = HttpClient.send({
type: "POST",
url: "http://mb3admin.com/admin/service/appstore/register",
data: JSON.stringify(postData),
contentType: "application/json",
promise = fetch("http://mb3admin.com/admin/service/appstore/register", {
method: 'POST',
body: JSON.stringify(postData),
headers: {
"X-Emby-Token": "EMBY-APPLE-VALIDATE"
"X-Emby-Token": "EMBY-APPLE-VALIDATE",
"Content-Type": "application/json"
}
});
}
promise.done(function () {
promise.then(function () {
setCachedResult(cacheKey, true);
callback(true, product);
}).fail(function (e) {
}, function (e) {
if (e.status == 402) {