mirror of
https://github.com/lightningequipment/circuitbreaker.git
synced 2026-08-13 12:33:02 +02:00
6 lines
170 B
TypeScript
6 lines
170 B
TypeScript
export const getConfig = (key?: keyof Config) => {
|
|
if (typeof window !== 'undefined') {
|
|
return key ? window.config[key] : window.config;
|
|
}
|
|
return undefined;
|
|
};
|