configure fetchKeepalive
This commit is contained in:
Vendored
+3
-2
@@ -687,7 +687,8 @@ var BaseAPI = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
fetchKeepalive: function fetchKeepalive() {}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1803,7 +1804,7 @@ var BaseAPI = /*#__PURE__*/function () {
|
|||||||
'Content-Type': settings.commitRequestDataType
|
'Content-Type': settings.commitRequestDataType
|
||||||
}),
|
}),
|
||||||
credentials: settings.xhrWithCredentials ? 'include' : undefined,
|
credentials: settings.xhrWithCredentials ? 'include' : undefined,
|
||||||
keepalive: true
|
keepalive: settings.fetchKeepalive()
|
||||||
});
|
});
|
||||||
result = {};
|
result = {};
|
||||||
result.result = global_constants.SCORM_TRUE;
|
result.result = global_constants.SCORM_TRUE;
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+3
-3
File diff suppressed because one or more lines are too long
Vendored
+3
-2
@@ -687,7 +687,8 @@ var BaseAPI = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
fetchKeepalive: function fetchKeepalive() {}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1803,7 +1804,7 @@ var BaseAPI = /*#__PURE__*/function () {
|
|||||||
'Content-Type': settings.commitRequestDataType
|
'Content-Type': settings.commitRequestDataType
|
||||||
}),
|
}),
|
||||||
credentials: settings.xhrWithCredentials ? 'include' : undefined,
|
credentials: settings.xhrWithCredentials ? 'include' : undefined,
|
||||||
keepalive: true
|
keepalive: settings.fetchKeepalive()
|
||||||
});
|
});
|
||||||
result = {};
|
result = {};
|
||||||
result.result = global_constants.SCORM_TRUE;
|
result.result = global_constants.SCORM_TRUE;
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+4
-4
File diff suppressed because one or more lines are too long
Vendored
+3
-2
@@ -562,7 +562,8 @@ var BaseAPI = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
fetchKeepalive: function fetchKeepalive() {}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1678,7 +1679,7 @@ var BaseAPI = /*#__PURE__*/function () {
|
|||||||
'Content-Type': settings.commitRequestDataType
|
'Content-Type': settings.commitRequestDataType
|
||||||
}),
|
}),
|
||||||
credentials: settings.xhrWithCredentials ? 'include' : undefined,
|
credentials: settings.xhrWithCredentials ? 'include' : undefined,
|
||||||
keepalive: true
|
keepalive: settings.fetchKeepalive()
|
||||||
});
|
});
|
||||||
result = {};
|
result = {};
|
||||||
result.result = global_constants.SCORM_TRUE;
|
result.result = global_constants.SCORM_TRUE;
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
Vendored
+3
-2
@@ -562,7 +562,8 @@ var BaseAPI = /*#__PURE__*/function () {
|
|||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
fetchKeepalive: function fetchKeepalive() {}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -1678,7 +1679,7 @@ var BaseAPI = /*#__PURE__*/function () {
|
|||||||
'Content-Type': settings.commitRequestDataType
|
'Content-Type': settings.commitRequestDataType
|
||||||
}),
|
}),
|
||||||
credentials: settings.xhrWithCredentials ? 'include' : undefined,
|
credentials: settings.xhrWithCredentials ? 'include' : undefined,
|
||||||
keepalive: true
|
keepalive: settings.fetchKeepalive()
|
||||||
});
|
});
|
||||||
result = {};
|
result = {};
|
||||||
result.result = global_constants.SCORM_TRUE;
|
result.result = global_constants.SCORM_TRUE;
|
||||||
|
|||||||
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+2
-2
File diff suppressed because one or more lines are too long
+4
-1
@@ -71,6 +71,9 @@ export default class BaseAPI {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
fetchKeepalive: function() {
|
||||||
|
|
||||||
|
},
|
||||||
};
|
};
|
||||||
cmi;
|
cmi;
|
||||||
startingData: {};
|
startingData: {};
|
||||||
@@ -1159,7 +1162,7 @@ export default class BaseAPI {
|
|||||||
'Content-Type': settings.commitRequestDataType,
|
'Content-Type': settings.commitRequestDataType,
|
||||||
},
|
},
|
||||||
credentials: settings.xhrWithCredentials ? 'include' : undefined,
|
credentials: settings.xhrWithCredentials ? 'include' : undefined,
|
||||||
keepalive: true,
|
keepalive: settings.fetchKeepalive(),
|
||||||
});
|
});
|
||||||
result = {};
|
result = {};
|
||||||
result.result = global_constants.SCORM_TRUE;
|
result.result = global_constants.SCORM_TRUE;
|
||||||
|
|||||||
Reference in New Issue
Block a user