Skip to content

Commit dd5b101

Browse files
committed
fix: fix pica initialization to use window object instead of jsWindow for improved compatibility
Signed-off-by: Caijinglong <[email protected]>
1 parent 32637ad commit dd5b101

File tree

1 file changed

+1
-1
lines changed
  • packages/flutter_image_compress_web/lib/src

1 file changed

+1
-1
lines changed

packages/flutter_image_compress_web/lib/src/pica.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Future<Uint8List> resizeWithList({
2626
int quality = 88,
2727
}) async {
2828
final Stopwatch stopwatch = Stopwatch()..start();
29-
final pica = jsWindow.pica() as Pica?;
29+
final pica = window.pica() as Pica?;
3030
if (pica == null) {
3131
throw Exception(
3232
'Pica not found. This plugin requires pica for image compression on the web. '

0 commit comments

Comments
 (0)