gildas-lormeau / single-file-cli

CLI tool for saving a faithful copy of a complete web page in a single HTML file (based on SingleFile)
GNU Affero General Public License v3.0
647 stars 63 forks source link

Fixes "ReferenceError: Cannot access 'options' before initialization" #95

Closed masylum closed 5 months ago

masylum commented 5 months ago

When using browser mobile emulation, the program crashed because on that scope, we were using options before re-declaring them. It's also less confusing to differentiate both variable names.

gildas-lormeau commented 5 months ago

Indeed, it's much better this way. Thank you very much for your contribution.