Skip to content

Commit

Permalink
restore comment
Browse files Browse the repository at this point in the history
  • Loading branch information
eanders-ms committed Oct 11, 2024
1 parent 9b16390 commit f6cb341
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pxtsim/simdriver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ namespace pxsim {
const simUrl = this.getSimUrl();
// Ensure we preserve upload target path (/app/<sha>---simulator)
const simPath = simUrl.pathname.replace(/---?.*/, "");
// Construct the path. The "-" element delineates the extension key from the resource name
// Construct the path. The "-" element delineates the extension key from the resource name.
const simxPath = [simPath, "simx", key, "-", simx.index].join("/");
// Create the fully-qualified URL, preserving the origin by removing all leading slashes
simx.url = new URL(simxPath.replace(/^\/+/, ""), simUrl.origin).toString();
Expand Down

0 comments on commit f6cb341

Please sign in to comment.