Skip to content

Commit

Permalink
Update deprecated method to #ajaxSetup
Browse files Browse the repository at this point in the history
  • Loading branch information
cpfergus1 committed Sep 13, 2022
1 parent 87cde55 commit 6ae4717
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Spree.Models.ImageUpload = Backbone.Model.extend({
processData: false, // tell jQuery not to process the data
contentType: false, // tell jQuery not to set contentType
xhr: function () {
var xhr = $.ajaxSettings.xhr();
var xhr = $.ajaxSetup.xhr(); // Using default ajax builder but inputting upload settings
if (xhr.upload) {
xhr.upload.onprogress = function (event) {
if (event.lengthComputable) {
Expand Down

0 comments on commit 6ae4717

Please sign in to comment.