The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/client/lib/utils/getConfig.ts

6 lines
253 B

import { Meteor } from 'meteor/meteor';
export const getConfig = (key: string): string | null => {
const searchParams = new URLSearchParams(window.location.search);
return searchParams.get(key) || Meteor._localStorage.getItem(`rc-config-${key}`);
};