@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@panoramax/web-viewer",
3
- "version": "3.2.3-develop-d0fdb647",
3
+ "version": "3.2.3-develop-72318485",
4
4
  "description": "Panoramax web viewer for geolocated pictures",
5
5
  "main": "build/index.js",
6
6
  "author": "Panoramax team",
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 => {