# saveFrames function not working in Firefox

**URL:** <https://discourse.processing.org/t/saveframes-function-not-working-in-firefox/32414>\
**Category:** p5.js\
**Created:** [September 25, 2021, 7:08pm UTC](https://discourse.processing.org/t/saveframes-function-not-working-in-firefox/32414 "2021-09-25T19:08:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neto0291](https://avatars.discourse-cdn.com/v4/letter/n/85e7bf/32.png) [@neto0291](https://discourse.processing.org/u/neto0291)\
**Post date:** [September 25, 2021, 7:08pm UTC](https://discourse.processing.org/t/saveframes-function-not-working-in-firefox/32414/1 "2021-09-25T19:08:29Z")

</div>

Hello!  
I’m using the sameframe function to , save the images of a gif animation I have in my website.  
This is my function:

```auto
saveFrames('out', 'png', 2, 25, function saveFrames(callbackData){
       console.log(callbackData);
       console.log('Button clicked');
   });

```

If I remove the part of the callbackfunction, the frames get saved without any issues, but when I add the function as the one I shared below, nothing happens.

I tested it in chrome, and I’m able to see the array that got created with the frames and the console log.  
In firefox nothing happens.

 ![Screen Shot 2021-09-25 at 2.08.17 PM](https://canada1.discourse-cdn.com/flex036/uploads/processingfoundation1/original/2X/0/0a1eaefb81a329386c58689f3d59604303fb648f.png)
