bigbluebutton-Github/bigbluebutton-html5/imports/startup/server/minBrowserVersion.js
2019-05-01 17:33:03 -07:00

20 lines
489 B
JavaScript
Executable File

import { Meteor } from 'meteor/meteor';
import { setMinimumBrowserVersions } from 'meteor/modern-browsers';
const setMinBrowserVersions = () => {
const { minBrowserVersions } = Meteor.settings.private;
const versions = {};
minBrowserVersions.forEach((elem) => {
let { version } = elem;
if (version === 'Infinity') version = Infinity;
versions[elem.browser] = version;
});
setMinimumBrowserVersions(versions, 'bbb-min');
};
export default setMinBrowserVersions;