bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/settings/submenus/closed-captions/service.js

14 lines
288 B
JavaScript
Raw Normal View History

2016-12-23 16:26:22 +08:00
import Storage from '/imports/ui/services/storage/session';
getClosedCaptionSettings = () => {
2017-06-03 03:25:02 +08:00
const ccSettings = {};
const ccEnabled = Storage.getItem('closedCaptions');
2016-12-24 02:49:17 +08:00
ccSettings.ccEnabled = !!ccEnabled;
2016-12-23 16:26:22 +08:00
return ccSettings;
};
2016-12-23 16:26:22 +08:00
export default {
getClosedCaptionSettings,
};