fix(servers): Fix subscription issue for production deployment. Added clientOnly option for static site deployments of OHIF Viewer

This commit is contained in:
Erik Ziegler committed 2018-09-21 15:16:28 +02:00
1 parent 18bcf83805
commit c4b1086097
2 files changed
+5 -5

No files matched your search

+2 -2
View File
@@ -6,13 +6,13 @@ Router.configure({
});
// If we are running a disconnect client similar to the StandaloneViewer
// If we are running a disconnected client similar to the StandaloneViewer
// (see https://docs.ohif.org/standalone-viewer/usage.html) we don't want
// our routes to get stuck while waiting for Pub / Sub.
//
// In this case, the developer is required to add Servers and specify
// a CurrentServer with some other approach (e.g. a separate script).
if (Meteor.status().connected === true) {
if (Meteor.settings.public && Meteor.settings.public.clientOnly !== true) {
Router.waitOn(function() {
return [
Meteor.subscribe('servers'),