Files
ohif-viewer/platform/core/src/utils/imageIdToURI.js
T

12 lines
315 B
JavaScript
Raw Normal View History

/**
* Removes the data loader scheme from the imageId
*
* @param {string} imageId Image ID
* @returns {string} imageId without the data loader scheme
* @memberof Cache
*/
export default function imageIdToURI(imageId) {
const colonIndex = imageId.indexOf(':');
return imageId.substring(colonIndex + 1);
}