machawk1 / warcreate

Chrome extension to "Create WARC files from any webpage"
https://warcreate.com
MIT License
207 stars 13 forks source link

Catch partial URIs without any relativity indicator #129

Closed machawk1 closed 3 years ago

machawk1 commented 3 years ago

Hacker News, for instance, references a JS file with just the file name without any relative indicator (./ or ../), any scheme, or really anything that would allow it to be parsed as a full URI with native functionality. This adds a check for this TypeError and attributes the current hostname/scheme to the partial.

Closes #128