mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-16 06:21:22 +00:00
Add one more webkit-specific whitelist in web-sys (#1865)
* Add one more webkit-specific whitelist in web-sys * Run rustfmt
This commit is contained in:
@ -465,10 +465,12 @@ impl<'a> Context<'a> {
|
||||
};
|
||||
|
||||
let default_module_path = match self.config.mode {
|
||||
OutputMode::Web => "\
|
||||
OutputMode::Web => {
|
||||
"\
|
||||
if (typeof module === 'undefined') {
|
||||
module = import.meta.url.replace(/\\.js$/, '_bg.wasm');
|
||||
}",
|
||||
}"
|
||||
}
|
||||
_ => "",
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user