Skip to content

Commit

Permalink
include cornerstone-web-image-loader as a dependency to standalonevie…
Browse files Browse the repository at this point in the history
…wer (#190)
  • Loading branch information
Zaid-Safadi authored and swederik committed May 9, 2018
1 parent 675e46e commit 5785d19
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 362 deletions.

This file was deleted.

2 changes: 2 additions & 0 deletions StandaloneViewer/StandaloneViewer/client/config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Meteor } from 'meteor/meteor';
import { OHIF } from 'meteor/ohif:core';
import { cornerstoneWADOImageLoader } from 'meteor/ohif:cornerstone';
import * as cornerstoneWebImageLoader from 'cornerstone-web-image-loader';

Meteor.startup(function() {
const maxWebWorkers = Math.max(navigator.hardwareConcurrency - 1, 1);
Expand All @@ -19,4 +20,5 @@ Meteor.startup(function() {
};

cornerstoneWADOImageLoader.webWorkerManager.initialize(config);
cornerstoneWebImageLoader.external.cornerstone = cornerstone;
});
1 change: 1 addition & 0 deletions StandaloneViewer/StandaloneViewer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
},
"dependencies": {
"babel-runtime": "^6.23.0",
"cornerstone-web-image-loader": "^2.1.0",
"meteor-node-stubs": "^0.2.11"
}
}

0 comments on commit 5785d19

Please sign in to comment.