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:
parent
ee899a7332
commit
9932bc3eb5
168 changed files with 948 additions and 945 deletions
16
dashboard-ui/cordova/iap.js
vendored
16
dashboard-ui/cordova/iap.js
vendored
|
@ -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) {
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue