Skip to content

Commit

Permalink
Remove api subdomain when opening dashboard url
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Nov 7, 2024
1 parent ceae318 commit de2b414
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/wakatime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -379,7 +379,7 @@ export class WakaTime {
}

public async openDashboardWebsite(): Promise<void> {
const url = (await this.options.getApiUrl()).replace('/api/v1', '');
const url = (await this.options.getApiUrl()).replace('/api/v1', '').replace('api.', '');
vscode.env.openExternal(vscode.Uri.parse(url));
}

Expand Down
2 changes: 1 addition & 1 deletion src/web/wakatime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ export class WakaTime {
}

public openDashboardWebsite(): void {
const url = this.getApiUrl().replace('/api/v1', '');
const url = this.getApiUrl().replace('/api/v1', '').replace('api.', '');
vscode.env.openExternal(vscode.Uri.parse(url));
}

Expand Down

0 comments on commit de2b414

Please sign in to comment.