mirror of
https://github.com/tribufu/sdk-js
synced 2025-06-16 18:44:18 +00:00
Fix nodejs process check
This commit is contained in:
@ -53,7 +53,7 @@ export class TribufuApi extends TribufuApiGenerated {
|
||||
* ```
|
||||
*/
|
||||
public static fromEnv(prefix?: string | null): TribufuApi | null {
|
||||
if (!process) {
|
||||
if (typeof process === "undefined") {
|
||||
return null;
|
||||
}
|
||||
|
||||
@ -93,7 +93,7 @@ export class TribufuApi extends TribufuApiGenerated {
|
||||
* @returns string
|
||||
*/
|
||||
protected static getBaseUrl(): string {
|
||||
if (!process) {
|
||||
if (typeof process === "undefined") {
|
||||
return TRIBUFU_API_URL;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user