mirror of
https://github.com/venera-app/venera.git
synced 2025-09-26 23:47:23 +00:00
fix js api onResponse
This commit is contained in:
@@ -71,7 +71,8 @@ abstract class ImageDownloader {
|
||||
}
|
||||
|
||||
if (configs['onResponse'] is JSInvokable) {
|
||||
buffer = (configs['onResponse'] as JSInvokable)([buffer]);
|
||||
final uint8List = Uint8List.fromList(buffer);
|
||||
buffer = (configs['onResponse'] as JSInvokable)([uint8List]);
|
||||
(configs['onResponse'] as JSInvokable).free();
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user