Force disable mining dashboard if base_module not mempool

This commit is contained in:
nymkappa
2022-03-16 17:28:00 +01:00
parent df81d4501f
commit 729c102fa5
4 changed files with 16 additions and 10 deletions

View File

@@ -111,6 +111,10 @@ export class StateService {
const browserWindowEnv = browserWindow.__env || {};
this.env = Object.assign(defaultEnv, browserWindowEnv);
if (defaultEnv.BASE_MODULE !== 'mempool') {
this.env.MINING_DASHBOARD = false;
}
if (this.isBrowser) {
this.setNetworkBasedonUrl(window.location.pathname);
this.isTabHidden$ = fromEvent(document, 'visibilitychange').pipe(map(() => this.isHidden()), shareReplay());