@panoramax/web-viewer 3.2.3-develop-d0fdb647 → 3.2.3-develop-72318485
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -0
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/package.json +1 -1
- package/src/utils/API.js +4 -3
package/package.json
CHANGED
package/src/utils/API.js
CHANGED
|
@@ -307,12 +307,13 @@ export default class API {
|
|
|
307
307
|
/**
|
|
308
308
|
* Get the defaults fetch options to pass during API calls
|
|
309
309
|
* @memberOf Panoramax.utils.API#
|
|
310
|
+
* @param {boolean} [noTimeout=false] Set to true to avoid default timeout
|
|
310
311
|
* @private
|
|
311
312
|
* @returns {object} The fetch options
|
|
312
313
|
*/
|
|
313
|
-
_getFetchOptions() {
|
|
314
|
+
_getFetchOptions(noTimeout=false) {
|
|
314
315
|
return Object.assign({
|
|
315
|
-
signal: AbortSignal.timeout(15000)
|
|
316
|
+
signal: noTimeout ? undefined : AbortSignal.timeout(15000)
|
|
316
317
|
}, this._fetchOpts);
|
|
317
318
|
}
|
|
318
319
|
|
|
@@ -357,7 +358,7 @@ export default class API {
|
|
|
357
358
|
API.isIdValid(seqId);
|
|
358
359
|
return fetch(
|
|
359
360
|
next || `${this._endpoints.collections}/${seqId}/items`,
|
|
360
|
-
this._getFetchOptions()
|
|
361
|
+
this._getFetchOptions(true)
|
|
361
362
|
)
|
|
362
363
|
.then(res => res.json())
|
|
363
364
|
.then(res => {
|