Skip to content
This repository was archived by the owner on Aug 15, 2019. It is now read-only.

Commit effab8d

Browse files
committed
fix(getWADORSImageId): Fix incorrect imageId construction for WADO-RS Multiframe instances
1 parent 98543e5 commit effab8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/getWADORSImageId.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function getWADORSImageUrl(instance, frame) {
99
frame = (frame || 0) + 1;
1010

1111
// Replaces /frame/1 by /frame/{frame}
12-
wadorsuri = wadorsuri.replace(/(%2Fframes%2F)(\d+)/, `$1${frame}`);
12+
wadorsuri = wadorsuri.replace(/frames\/(\d+)/, `frames/${frame}`);
1313

1414
return wadorsuri;
1515
}

0 commit comments

Comments
 (0)