integrations: workaround lack of private method support

Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
Patrik Oldsberg
2021-09-10 13:00:35 +02:00
parent f7ad3a8925
commit 5400d81f28
+2 -2
View File
@@ -81,11 +81,11 @@ export class AzureUrl {
this.#ref = ref;
}
#baseUrl(...parts: string[]): URL {
#baseUrl = (...parts: string[]): URL => {
const url = new URL(this.#origin);
url.pathname = parts.map(part => encodeURIComponent(part)).join('/');
return url;
}
};
/**
* Returns a repo URL that can be used to navigate to the resource in azure.