mirror of
https://github.com/status-im/realm-js.git
synced 2025-02-17 09:06:26 +00:00
change the this argument for the callback
This commit is contained in:
parent
2b6dc8fc14
commit
069bdfd2af
@ -355,7 +355,7 @@ void SessionClass<T>::add_progress_notification(ContextType ctx, FunctionType, O
|
|||||||
callback_arguments[0] = Value::from_number(protected_ctx, transferred_bytes);
|
callback_arguments[0] = Value::from_number(protected_ctx, transferred_bytes);
|
||||||
callback_arguments[1] = Value::from_number(protected_ctx, transferrable_bytes);
|
callback_arguments[1] = Value::from_number(protected_ctx, transferrable_bytes);
|
||||||
|
|
||||||
Function<T>::callback(protected_ctx, protected_callback, protected_this, 2, callback_arguments);
|
Function<T>::callback(protected_ctx, protected_callback, typename T::Object(), 2, callback_arguments);
|
||||||
});
|
});
|
||||||
|
|
||||||
progressFunc = std::move(progress_handler);
|
progressFunc = std::move(progress_handler);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user