Use sketch directory as url param when a new created sketch gets opened

Signed-off-by: Jan Bicker <jan.bicker@typefox.io>
This commit is contained in:
Jan Bicker 2019-08-28 08:13:11 +00:00
parent 9ae721292d
commit b82d5e4f0b

View File

@ -51,7 +51,7 @@ void loop() {
}
` });
const location = new URL(window.location.href);
location.searchParams.set('sketch', sketchFile.toString());
location.searchParams.set('sketch', sketchDir.toString());
const hash = await this.fileSystem.getFsPath(sketchDir.toString());
if (hash) {
location.hash = hash;