add some comments

This commit is contained in:
Simon Gardling
2022-02-14 11:15:55 -05:00
parent d790b9c0f1
commit 93be08f048
2 changed files with 3 additions and 1 deletions

View File

@@ -25,7 +25,7 @@ export function main() {
/** This function is used in `bootstrap.js` to setup imports. */
export function setup(WasmChart) {
ChartManager = WasmChart;
ChartManager.init_panic_hook();
ChartManager.init_panic_hook(); // Allows `panic!()` to log in the browser's console
}
/** Add event listeners. */