Revision 60193
Added by Konstantinos Triantafyllou about 3 years ago
connectHelper.ts | ||
---|---|---|
4 | 4 |
export class ConnectHelper { |
5 | 5 |
|
6 | 6 |
public static getCommunityFromDomain(domain: string): string{ |
7 |
//domain = "beta.covid-19.openaire.eu"; //for testing
|
|
7 |
domain = "beta.covid-19.openaire.eu"; //for testing |
|
8 | 8 |
domain = domain.indexOf("//") != -1? domain.split("//")[1]:domain; //remove https:// prefix |
9 | 9 |
if (domain.indexOf('openaire.eu') === -1) { |
10 | 10 |
return null; |
Also available in: Unified diff
[Library | Trunk]: 1. Hide Annotations title if annotation list is empty. 2. Make more obvious when add annotation is disable