Increase API request timeout to accommodate long notice slip file uploads

master
Skylar Ittner 3 years ago
parent ce54bdfecf
commit 4265123589

@ -31,7 +31,7 @@ function apirequest(url, data, success, error, method, username, password) {
dataType: "json",
method: method,
data: data,
timeout: 10 * 1000,
timeout: 30 * 1000,
beforeSend: function (xhr) {
if (typeof username === 'string' && typeof password === 'string') {
xhr.setRequestHeader("Authorization", "Basic " + btoa(username + ":" + password));

Loading…
Cancel
Save