Fix issues #28: InvalidCharacterError in getUrl when using non-Latin1
This commit is contained in:
@@ -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}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user