mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
Fixed promises on Internet Explorer
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
var App = App || {};
|
||||
|
||||
App.API = function() {
|
||||
App.API = function(promise) {
|
||||
|
||||
var baseUrl = '/api/';
|
||||
|
||||
@ -24,7 +24,7 @@ App.API = function() {
|
||||
var fullUrl = baseUrl + '/' + url;
|
||||
fullUrl = fullUrl.replace(/\/{2,}/, '/');
|
||||
|
||||
return new Promise(function(resolve, reject) {
|
||||
return promise.make(function(resolve, reject) {
|
||||
$.ajax({
|
||||
success: function(data, textStatus, xhr) {
|
||||
resolve({
|
||||
|
Reference in New Issue
Block a user