mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-11-09 10:28:32 +00:00
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:
@@ -51,7 +51,7 @@ void loop() {
|
|||||||
}
|
}
|
||||||
` });
|
` });
|
||||||
const location = new URL(window.location.href);
|
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());
|
const hash = await this.fileSystem.getFsPath(sketchDir.toString());
|
||||||
if (hash) {
|
if (hash) {
|
||||||
location.hash = hash;
|
location.hash = hash;
|
||||||
|
|||||||
Reference in New Issue
Block a user