11/* global chrome */
2- import * as sb2gs from ' ./sb2gs.js' ;
2+ import * as sb2gs from " ./sb2gs.js" ;
33import * as pyodidePkg from "./pyodide/pyodide.mjs" ;
44
55/**
66 * @param addon {UserscriptAddon}
77 * @param console
88 * @returns {Promise<void> }
99 */
10- export default async function ( { addon, console } ) {
10+ export default async function ( { addon, console } ) {
1111 const decompileButton = document . createElement ( "button" ) ;
1212 decompileButton . className = "button sa-decompile-button waiting" ;
1313 decompileButton . title = "decompile to goboscript code" ;
@@ -20,8 +20,7 @@ export default async function({ addon, console }) {
2020
2121 const loadMicropipPromise = pyodide . loadPackage ( "micropip" ) ;
2222
23- const sb2gsWhlFile = await ( ( await
24- fetch ( `${ addon . self . dir } /${ sb2gs . sb2gsWhlName } ` ) ) . bytes ( ) ) ;
23+ const sb2gsWhlFile = await ( await fetch ( `${ addon . self . dir } /${ sb2gs . sb2gsWhlName } ` ) ) . bytes ( ) ;
2524
2625 pyodide . FS . writeFile ( `/${ sb2gs . sb2gsWhlName } ` , sb2gsWhlFile ) ;
2726
@@ -41,7 +40,7 @@ export default async function({ addon, console }) {
4140 await sb2gs . decompile ( addon , console , pyodide , decompileButton ) ;
4241 decompileButton . classList . remove ( "loading" ) ;
4342 decompileButton . classList . add ( "waiting" ) ;
44- }
43+ } ;
4544
4645 while ( true ) {
4746 const seeInside = await addon . tab . waitForElement ( ".see-inside-button" , {
0 commit comments