Skip to content

Commit 46f47e4

Browse files
Fix the unwanted initial navigation in MakeCode (#10)
1 parent ada3aaa commit 46f47e4

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/vanilla/makecode-frame-driver.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -836,5 +836,7 @@ export const createMakeCodeURL = (
836836
url.searchParams.set(k, v);
837837
}
838838
}
839+
// This avoids a navigation which will pollute the history of the embedding page.
840+
url.hash = 'editor';
839841
return url.toString();
840842
};

0 commit comments

Comments
 (0)