bigbluebutton-Github/bigbluebutton-html5/imports/ui/services/storage/index.js
Ramón Souza 7514066fc3
fix: Client can't load in certain cases (#20336)
* move settings

* remove meteor cache files
2024-05-29 09:26:11 -04:00

15 lines
397 B
JavaScript

import Local from './local';
import Session from './session';
let StorageSingleton = null;
export const getStorageSingletonInstance = () => {
const APP_CONFIG = window.meetingClientSettings.public.app;
if (!StorageSingleton) {
StorageSingleton = APP_CONFIG.userSettingsStorage === 'local' ? Local : Session;
}
return StorageSingleton;
};
export default getStorageSingletonInstance;