sahilsehwag / pluralsight-downloader-chrome-extension

[WIP] A chrome extension to download and track Pluralsight courses. 😈
The Unlicense
300 stars 67 forks source link

TypeError: name.replace is not a function #38

Closed ressomatic closed 2 years ago

ressomatic commented 3 years ago

It seems the code still uses 'a' and 's' keybinds. When trying to execute download, error pops up.

ressomatic commented 3 years ago

Fixed it by replacing const nameToFilename = (name) => name.replace(...).trim(); with:

const nameToFilename = (name) => name.toString().replace(/[\/:?><]/g, " ");

sahilsehwag commented 2 years ago

Hey this issue was already fixed, you are using old version of extension, please install the latest version by downloading the code as zip and loading the extension in chrome using Load Unpacked button in Manage Extensions page in chrome