mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 09:58:39 +00:00
backup
This commit is contained in:
parent
fb1ae16215
commit
a56face85c
|
|
@ -1083,6 +1083,11 @@ export class Form
|
|||
request.setResultCallback(0, function (xhr)
|
||||
{
|
||||
window.omsApp.logger.log(xhr.response);
|
||||
const headerLocation = xhr.getResponseHeader('location')
|
||||
|
||||
if (headerLocation !== null) {
|
||||
window.location = headerLocation;
|
||||
}
|
||||
|
||||
if (xhr.getResponseHeader('content-type').includes('application/octet-stream')) {
|
||||
const blob = new Blob([xhr.response], { type: 'application/octet-stream' });
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user