Remove unused code for rewriting endpoint

This was previously needed when the endpoint was configurable
This commit is contained in:
Matt Bierner 2021-05-27 16:16:46 -07:00
parent 15616f8d93
commit 1380c0c5e0
No known key found for this signature in database
GPG key ID: 099C331567E11888

View file

@ -70,11 +70,7 @@ export class ElectronIframeWebview extends IFrameWebview {
}
protected override get webviewContentEndpoint(): string {
const endpoint = `${Schemas.vscodeWebview}://${this.id}`;
if (endpoint[endpoint.length - 1] === '/') {
return endpoint.slice(0, endpoint.length - 1);
}
return endpoint;
return `${Schemas.vscodeWebview}://${this.id}`;
}
protected override async doPostMessage(channel: string, data?: any): Promise<void> {