fix(servers): Fix subscription issue for production deployment. Added clientOnly option for static site deployments of OHIF Viewer
This commit is contained in:
1 parent
18bcf83805
commit
c4b1086097
2 files changed
+5
-5
No files matched your search
@@ -303,9 +303,9 @@ var clientOnlyStrategy = (function () {
|
||||
// If we are running a disconnect client similar to the StandaloneViewer
|
||||
// (see https://docs.ohif.org/standalone-viewer/usage.html) we don't want
|
||||
// our HangingProtocol strategy to try to use Meteor methods or Pub / Sub
|
||||
if (Meteor.status().connected === true) {
|
||||
HP.ProtocolStore.setStrategy(defaultStrategy);
|
||||
} else {
|
||||
if (Meteor.settings.public && Meteor.settings.public.clientOnly === true) {
|
||||
HP.ProtocolStore.setStrategy(clientOnlyStrategy);
|
||||
} else {
|
||||
HP.ProtocolStore.setStrategy(defaultStrategy);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user