2017-06-16 21:36:34 +02:00
|
|
|
import { Mongo } from 'meteor/mongo';
|
|
|
|
|
import { OHIF } from 'meteor/ohif:core';
|
|
|
|
|
|
|
|
|
|
// CurrentServer is a single document collection to describe which of the Servers is being used
|
2018-09-21 20:02:29 +02:00
|
|
|
let collectionName = 'currentServer';
|
|
|
|
|
if (Meteor.settings && Meteor.settings.public && Meteor.settings.public.clientOnly === true) {
|
|
|
|
|
collectionName = null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const CurrentServer = new Mongo.Collection(collectionName);
|
2017-06-16 21:36:34 +02:00
|
|
|
CurrentServer._debugName = 'CurrentServer';
|
|
|
|
|
OHIF.servers.collections.currentServer = CurrentServer;
|
|
|
|
|
|
|
|
|
|
export { CurrentServer };
|