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
539 stars 57 forks source link

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

Closed masylum closed 1 month ago

masylum commented 1 month 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 1 month ago

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