Vladimir Struhar

Results 4 comments of Vladimir Struhar

Seems that you need to initialise your `sidebar` variable outside, so it can be accessed from the scope where you call `destroy()`. ![image](https://user-images.githubusercontent.com/6599021/192346507-21bbbc7e-74b9-457a-83f9-188fc22476f4.png)

I have the same issue, when I use second argument as name it downloads an empty file.

Here is the solution, I didn't notice it in the documentation: https://github.com/rndme/download#image-via-ajax-for-custom-filename---live-demo

Thanks, `allowedContent: true` made it work on page load