Skip to content

Commit

Permalink
Fix opening dashboard in web extension with custom url
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Nov 22, 2024
1 parent 86b7a29 commit fdc006c
Showing 1 changed file with 1 addition and 1 deletion.
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', '').replace('api.', '');
const url = this.getApiUrl().replace('/api/v1', '').replace('://api.', '://');
vscode.env.openExternal(vscode.Uri.parse(url));
}

Expand Down

0 comments on commit fdc006c

Please sign in to comment.