mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-23 17:51:33 +00:00
wasm-bindgen-test: Rename console_*_redirect
to on_console_*
Since we are no longer redirecting all console logs, and are instead just observing them.
This commit is contained in:
@ -22,16 +22,16 @@
|
||||
};
|
||||
|
||||
console.log = function(...args) {
|
||||
if (window.console_log_redirect) {
|
||||
window.console_log_redirect(args);
|
||||
if (window.on_console_log) {
|
||||
window.on_console_log(args);
|
||||
}
|
||||
|
||||
orig_console_log.apply(this, args);
|
||||
};
|
||||
|
||||
console.error = function(...args) {
|
||||
if (window.console_error_redirect) {
|
||||
window.console_error_redirect(args);
|
||||
if (window.on_console_error) {
|
||||
window.on_console_error(args);
|
||||
}
|
||||
|
||||
orig_console_error.apply(this, args);
|
||||
|
Reference in New Issue
Block a user