Add condition if local storage backend exists use it else use enviroment property
This commit is contained in:
parent
7f6911f4c6
commit
b4f802fb9b
Binary file not shown.
|
@ -28,8 +28,11 @@ export class Util {
|
||||||
}
|
}
|
||||||
|
|
||||||
public getBackendServerAddress(): string {
|
public getBackendServerAddress(): string {
|
||||||
// return localStorage.getItem('mining_backend_address');
|
if (localStorage.getItem('mining_backend_address')) {
|
||||||
return environment.miningbackendserveraddress;
|
return localStorage.getItem('mining_backend_address');
|
||||||
|
} else {
|
||||||
|
return environment.miningbackendserveraddress;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public getIsCommunityManager(): string {
|
public getIsCommunityManager(): string {
|
||||||
|
|
Loading…
Reference in New Issue