Skip to content

Commit 64b2fef

Browse files
committed
cargo fmt
1 parent 34a58b4 commit 64b2fef

File tree

1 file changed

+3
-2
lines changed
  • crates/cli-support/src/js

1 file changed

+3
-2
lines changed

crates/cli-support/src/js/mod.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -379,12 +379,13 @@ impl<'a> Context<'a> {
379379
OutputMode::NoModules { global } => {
380380
js.push_str("const __exports = {};\n");
381381
js.push_str("let script_src;\n");
382-
js.push_str("\
382+
js.push_str(
383+
"\
383384
if (typeof document === 'undefined') {
384385
script_src = location.href;
385386
} else {
386387
script_src = document.currentScript.src;
387-
}"
388+
}",
388389
);
389390
js.push_str("let wasm;\n");
390391
init = self.gen_init(needs_manual_start, None)?;

0 commit comments

Comments
 (0)