Skip to content

Commit

Permalink
fix: imageRetrievalPoolManager should also use addToBeginning (#402)
Browse files Browse the repository at this point in the history
* fix: imageRetrievalPoolManager should also use addToBeginning

* bump cornerstone-core version

Co-authored-by: swederik <[email protected]>
  • Loading branch information
sedghi and swederik authored Oct 1, 2021
1 parent 61c2ffd commit eae0dee
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"prepublishOnly": "npm run build && npm run test:ci && npm run doc:generate"
},
"peerDependencies": {
"cornerstone-core": "^2.5.0"
"cornerstone-core": "^2.6.0"
},
"devDependencies": {
"@babel/core": "^7.15.4",
Expand Down
4 changes: 3 additions & 1 deletion src/imageLoader/wadors/loadImage.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,13 +108,15 @@ function loadImage(imageId, options = {}) {
const requestType = options.requestType || 'interaction';
const additionalDetails = options.additionalDetails || { imageId };
const priority = options.priority === undefined ? 5 : options.priority;
const addToBeginning = options.addToBeginning || false;
const uri = imageId.substring(7);

imageRetrievalPool.addRequest(
sendXHR.bind(this, uri, imageId, mediaType),
requestType,
additionalDetails,
priority
priority,
addToBeginning
);
});

Expand Down

0 comments on commit eae0dee

Please sign in to comment.