mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-05-31 15:41:04 +00:00
16 lines
364 B
TypeScript
16 lines
364 B
TypeScript
// Copyright 2017-2020 @polkadot/ui-keyring authors & contributors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
import { BehaviorSubject } from 'rxjs';
|
|
|
|
const subject = new BehaviorSubject(false);
|
|
|
|
export const env = {
|
|
isDevelopment: (): boolean =>
|
|
subject.getValue(),
|
|
set: (isDevelopment: boolean): void => {
|
|
subject.next(isDevelopment);
|
|
},
|
|
subject
|
|
};
|