Leone25 / hub-young-downloader

A tool that allows you to create an ofline backup of your books on HUB Young and HUB Kids
MIT License
18 stars 2 forks source link

ReferenceError: container is not defined (FIXED) #12

Closed riccardosalemme closed 8 months ago

riccardosalemme commented 8 months ago

ERROR

while (!container) 
           ^

ReferenceError: container is not defined

FIX

In the index.js file add this simple line of code let container = true. This simple fix works for me.

// line 55 | index.js
let container = true // add this line of code
while (!container)  
     container = prompt("Insert the container for your book (either 'kids' or 'young')");
Leone25 commented 8 months ago

Not even sure why it was there, thx