bump the sledgehammer bindgen version
This commit is contained in:
1 parent
c0f2e8391c
commit
93ee53454f
12 files changed
+249
-150
No files matched your search
@@ -43,6 +43,7 @@ fn handle_edits_code() -> String {
|
||||
}"#;
|
||||
let polling_request = format!(
|
||||
r#"// Poll for requests
|
||||
window.interpreter = new JSChannel();
|
||||
window.interpreter.wait_for_request = (headless) => {{
|
||||
fetch(new Request("{EDITS_PATH}"))
|
||||
.then(response => {{
|
||||
@@ -50,11 +51,11 @@ fn handle_edits_code() -> String {
|
||||
.then(bytes => {{
|
||||
// In headless mode, the requestAnimationFrame callback is never called, so we need to run the bytes directly
|
||||
if (headless) {{
|
||||
run_from_bytes(bytes);
|
||||
interpreter.run_from_bytes(bytes);
|
||||
}}
|
||||
else {{
|
||||
requestAnimationFrame(() => {{
|
||||
run_from_bytes(bytes);
|
||||
interpreter.run_from_bytes(bytes);
|
||||
}});
|
||||
}}
|
||||
window.interpreter.wait_for_request(headless);
|
||||
@@ -74,7 +75,7 @@ fn handle_edits_code() -> String {
|
||||
interpreter.replace_range(import_start..import_end, "");
|
||||
}
|
||||
|
||||
format!("{interpreter}\nconst config = new InterpreterConfig(true);")
|
||||
format!("{interpreter}\nconst intercept_link_redirects = true;")
|
||||
}
|
||||
|
||||
static DEFAULT_INDEX: &str = include_str!("./index.html");
|
||||
|
||||
Reference in new issue
Block a user