y252328 / Instagram_Download_Button

Add download button to download media in the post and the story in Instagram
MIT License
234 stars 32 forks source link

Media index is always zero #49

Closed HanryProper closed 9 months ago

HanryProper commented 10 months ago

It seems that due to the re-definition of mediaIndex on line 376 the value is not saved to the variable in the outside scope on line 351, causing the returned value to always be 0. Deleting the 'let' keyword seems to fix the issue.

Patty-OFurniture commented 10 months ago

PR 32 was created for this

https://github.com/y252328/Instagram_Download_Button/pull/32