Skip to content

Commit

Permalink
make framerate_wait a const
Browse files Browse the repository at this point in the history
  • Loading branch information
pufferfish101007 committed Aug 29, 2023
1 parent b0a815a commit 4ab075a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/targets/wasm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ impl From<IrProject> for WebWasmFile {
let wasm_bytes = module.finish();
Self { js_string: format!("
({{ framerate=30 }} = {{ framerate: 30 }}) => new Promise((resolve, reject) => {{
let framerate_wait = Math.round(1000 / framerate);
const framerate_wait = Math.round(1000 / framerate);
let assert;
let exit;
let browser = false;
Expand Down

0 comments on commit 4ab075a

Please sign in to comment.