Skip to content

Commit d3093d0

Browse files
authored
fix: Remove stackPrefetch configuration to let apps configure themselves
Remove stackPrefetch configuration to let apps configure themselves
2 parents 82cf001 + 88e7d8c commit d3093d0

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/CornerstoneViewport/CornerstoneViewport.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -807,16 +807,7 @@ function _trySetActiveTool(element, activeToolName) {
807807
});
808808
}
809809

810-
// TODO: Move configuration elsewhere
811-
// This is app wide, right?
812-
// Why would we configure this per element?
813810
function _enableStackPrefetching(element, clear = false) {
814-
cornerstoneTools.stackPrefetch.setConfiguration({
815-
maxImagesToPrefetch: Infinity,
816-
preserveExistingPool: false,
817-
maxSimultaneousRequests: 6,
818-
});
819-
820811
if (clear) {
821812
cornerstoneTools.stackPrefetch.disable(element);
822813
} else {

0 commit comments

Comments
 (0)