From 39c5800ff52fd8f3c0cab16cecc178ef2542beba Mon Sep 17 00:00:00 2001 From: TheGeneralist <180094941+thegeneralist01@users.noreply.github.com> Date: Wed, 8 Jul 2026 10:39:59 +0200 Subject: [PATCH] fix: correct singlefile.rs docstring (scripts.js concatenates, not isolates) --- crates/archivr-core/src/downloader/singlefile.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/archivr-core/src/downloader/singlefile.rs b/crates/archivr-core/src/downloader/singlefile.rs index 51033e6..6654cff 100644 --- a/crates/archivr-core/src/downloader/singlefile.rs +++ b/crates/archivr-core/src/downloader/singlefile.rs @@ -12,12 +12,10 @@ use std::{ use crate::downloader::cookies::{domain_from_url, write_netscape_cookie_file}; use crate::hash::hash_file; -/// Mozilla Readability.js (Apache 2.0) — embedded at compile time so captures /// Combined reader-mode script: Readability.js (Apache 2.0) bundled with the -/// archivr wrapper in a single IIFE so both share the same execution scope — -/// passing them as separate `--browser-script` files can put each in its own -/// context (observed with single-file-cli 1.1.49), making Readability invisible -/// to the wrapper. +/// archivr wrapper in a single IIFE. single-file-cli concatenates all +/// `--browser-script` files into one string before injection (scripts.js:84), +/// so scope sharing is guaranteed; the combined file is kept for clarity. /// /// Emits `` /// so the outcome is observable in the saved HTML.