Skip to content

Commit

Permalink
Fix subdomain check
Browse files Browse the repository at this point in the history
  • Loading branch information
egorprnn committed Mar 29, 2021
1 parent ce38594 commit 8076a89
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "namemcwrapper",
"version": "1.8.6",
"version": "1.8.7",
"description": "ES6 Promise based wrapper for NameMC.com",
"main": "./dist/NameMC.js",
"exports": {
Expand Down
2 changes: 1 addition & 1 deletion src/NameMC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ export class NameMC extends DataParser {
protected getEndpoint({ subdomain = "", domain = "" }: IGetEndpointOptions = {}): string {
const { proxy, endpoint, rendersIgnoreProxy }: IOptions = this.options;

return `${rendersIgnoreProxy && subdomain === "renders" ? "" : `${proxy}/`}https://${subdomain ? `${subdomain}.` : ""}${domain || endpoint}`;
return `${rendersIgnoreProxy && subdomain === "render" ? "" : `${proxy}/`}https://${subdomain ? `${subdomain}.` : ""}${domain || endpoint}`;
}
}

Expand Down

0 comments on commit 8076a89

Please sign in to comment.