Ajout variable globale __courses et __network pour débogage
This commit is contained in:
parent
6d76d874a1
commit
ef8d88de28
|
@ -6,6 +6,9 @@ import * as map from "./map/index.js";
|
||||||
const coursesSimulation = simulation.start();
|
const coursesSimulation = simulation.start();
|
||||||
let courseId = null;
|
let courseId = null;
|
||||||
|
|
||||||
|
window.__courses = coursesSimulation.courses;
|
||||||
|
window.__network = network;
|
||||||
|
|
||||||
// Create display panel
|
// Create display panel
|
||||||
const panel = document.querySelector("#panel");
|
const panel = document.querySelector("#panel");
|
||||||
|
|
||||||
|
|
|
@ -314,7 +314,5 @@ export const start = () => {
|
||||||
tick(courses, time);
|
tick(courses, time);
|
||||||
};
|
};
|
||||||
|
|
||||||
window.__courses = courses;
|
|
||||||
|
|
||||||
return { courses, update };
|
return { courses, update };
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue