Fix issues #28: InvalidCharacterError in getUrl when using non-Latin1

This commit is contained in:
Mateusz Tymek
2026-02-23 18:50:45 +01:00
parent aaa71df9b2
commit 159e7ad7ac
2 changed files with 35 additions and 2 deletions

View File

@@ -44,7 +44,7 @@ export class ServerManager extends EventEmitter {
}
getUrl(): string {
const encodedPath = btoa(this.projectDirectory);
const encodedPath = Buffer.from(this.projectDirectory).toString('base64');
return `http://${this.settings.hostname}:${this.settings.port}/${encodedPath}`;
}