fix(client-only): Fix client-only Server & CurrentServer usage (#276)

This commit is contained in:
Erik Ziegler authored and GitHub committed 2018-09-21 20:02:29 +02:00
1 parent c4b1086097
commit 18a3bcba30
10 files changed
+86 -37

No files matched your search

+4 -1
View File
@@ -1,3 +1,4 @@
import { Meteor } from "meteor/meteor";
import { Router } from 'meteor/clinical:router';
import { OHIF } from 'meteor/ohif:core';
@@ -12,7 +13,9 @@ Router.configure({
//
// 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.settings.public && Meteor.settings.public.clientOnly !== true) {
if (Meteor.settings &&
Meteor.settings.public &&
Meteor.settings.public.clientOnly !== true) {
Router.waitOn(function() {
return [
Meteor.subscribe('servers'),