Skip to content

Commit

Permalink
e -> x
Browse files Browse the repository at this point in the history
  • Loading branch information
eanders-ms committed Oct 1, 2024
1 parent 27396c5 commit 7c70ad8
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions webapp/src/simulator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,22 @@ export async function initAsync(root: HTMLElement, cfg: SimulatorConfig) {
const simulatorExtensions: pxt.Map<pxt.SimulatorExtensionConfig> = {};
Object.entries(trgConfig?.packages?.approvedRepoLib || {})
.map(([k, v]) => ({ k: k, v: v.simx }))
.filter(e => !!e.v)
.forEach(e => simulatorExtensions[e.k] = {
.filter(x => !!x.v)
.forEach(x => simulatorExtensions[x.k] = {
index: "index.html", // default to index.html
aspectRatio: pxt.appTarget.simulator.aspectRatio || 1.22, // fallback to 1.22
permanent: true, // default to true
...e.v
...x.v
});
// Add in test simulator extensions
Object.entries(pxt.appTarget?.simulator?.testSimulatorExtensions || {})
.map(([k, v]) => ({ k: k, v: v as pxt.SimulatorExtensionConfig }))
.filter(e => !!e.v)
.forEach(e => simulatorExtensions[e.k] = {
.filter(x => !!x.v)
.forEach(x => simulatorExtensions[x.k] = {
index: "index.html", // default to index.html
aspectRatio: pxt.appTarget.simulator.aspectRatio || 1.22, // fallback to 1.22
permanent: true, // default to true
...e.v
...x.v
});

let options: pxsim.SimulatorDriverOptions = {
Expand Down

0 comments on commit 7c70ad8

Please sign in to comment.