Project

General

Profile

« Previous | Next » 

Revision 60581

[Library | Trunk]: Add urlPrefix on portal results

View differences:

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.egi.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