PWV-15: Updating Viewer Data inside viewer.js

This commit is contained in:
Bruno Alves de Faria committed 2017-03-21 10:16:47 -03:00
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');