Skip to content

Commit

Permalink
update path for test cases in ExampleImageLoaderRaw to use current pa…
Browse files Browse the repository at this point in the history
…ge location as base. Fix when example is hosted on GitHub (#265)
  • Loading branch information
Zaid-Safadi committed Apr 24, 2018
1 parent 8dcce3c commit c29647b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion example/exampleImageIdLoaderRaw.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@
}
}

var baseUrl = '/example/displayedArea/test-cases/';

var baseUrl = window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/')) + '/test-cases/';

// register our imageLoader plugin with cornerstone
cs.registerImageLoader('example', getExampleImage);
Expand Down

0 comments on commit c29647b

Please sign in to comment.