File tree Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Expand file tree Collapse file tree 2 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 26
26
loader .log (" Loading runtime..." )
27
27
pyodideReadyPromise = loadInterpreter ();
28
28
const pyodide = await pyodideReadyPromise ;
29
- let newEnv = {
29
+ const newEnv = {
30
30
id: ' a' ,
31
31
promise: pyodideReadyPromise ,
32
32
runtime: pyodide ,
Original file line number Diff line number Diff line change @@ -170,10 +170,7 @@ async function mountElements() {
170
170
171
171
let source = '' ;
172
172
for ( const el of matches ) {
173
- let mountName = el . getAttribute ( 'py-mount' ) ;
174
- if ( ! mountName ) {
175
- mountName = el . id . split ( '-' ) . join ( '_' ) ;
176
- }
173
+ const mountName = el . getAttribute ( 'py-mount' ) || el . id . split ( '-' ) . join ( '_' ) ;
177
174
source += `\n${ mountName } = Element("${ el . id } ")` ;
178
175
}
179
176
await pyodide . runPythonAsync ( source ) ;
You can’t perform that action at this time.
0 commit comments