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,9 +28,12 @@ export class Util {
|
|||
}
|
||||
|
||||
public getBackendServerAddress(): string {
|
||||
// return localStorage.getItem('mining_backend_address');
|
||||
if (localStorage.getItem('mining_backend_address')) {
|
||||
return localStorage.getItem('mining_backend_address');
|
||||
} else {
|
||||
return environment.miningbackendserveraddress;
|
||||
}
|
||||
}
|
||||
|
||||
public getIsCommunityManager(): string {
|
||||
return localStorage.getItem('isCommunityManager');
|
||||
|
|
Loading…
Reference in New Issue