PWV-15: Updating Viewer Data inside viewer.js
This commit is contained in:
1 parent
2ea2107e11
commit
374dab5ef4
4 files changed
+9
-6
No files matched your search
@@ -44,9 +44,6 @@ Template.app.onCreated(() => {
|
||||
const routeName = currentRoute.route.getName();
|
||||
const isViewer = routeName.indexOf('viewer') === 0;
|
||||
|
||||
// Define the OHIF.viewer.data global object
|
||||
OHIF.viewer.data = OHIF.viewer.data || Session.get('ViewerData') || {};
|
||||
|
||||
// Add or remove the strech class from body
|
||||
$(document.body)[isViewer ? 'addClass' : 'removeClass']('stretch');
|
||||
|
||||
|
||||
Reference in new issue
Block a user