Ajout variable globale __courses et __network pour débogage

This commit is contained in:
Mattéo Delabre 2021-05-15 12:38:24 +02:00
parent 6d76d874a1
commit ef8d88de28
Signed by: matteo
GPG Key ID: AE3FBD02DC583ABB
2 changed files with 3 additions and 2 deletions

View File

@ -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");

View File

@ -314,7 +314,5 @@ export const start = () => {
tick(courses, time); tick(courses, time);
}; };
window.__courses = courses;
return { courses, update }; return { courses, update };
}; };