gautamkrishnar / motrix-webextension

A browser extension for the Motrix Download Manager
GNU General Public License v3.0
1.21k stars 97 forks source link

fix filename and directory #46

Closed JaroslawPokropinski closed 2 years ago

JaroslawPokropinski commented 2 years ago

Currently filename is always empty so downloading to with "save link as" or when name of the file cannot be inferred from url dont work. Chrome sets filename ot in oncreated but in first onchanged. This code waits for filename to be set before download. Additionaly added semicolons to prettier and ignored error with deleting file that is not finished downloading.

gautamkrishnar commented 2 years ago

Looks great 👍🏻 Thanks a lot for contributing @JaroslawPokropinski