Set importmaps to an empty array (#708)

Use const instead
This commit is contained in:
Fábio Rosado
2022-08-24 00:03:52 +01:00
committed by GitHub
parent 24a70a8273
commit e351889811

View File

@@ -80,7 +80,7 @@ export class BaseEvalElement extends HTMLElement {
protected async _register_esm(pyodide: PyodideInterface): Promise<void> {
const imports: { [key: string]: unknown } = {};
const nodes = document.querySelectorAll("script[type='importmap']");
let importmaps: Array<any>;
const importmaps: Array<any> = [];
nodes.forEach( node =>
{
let importmap;