asdf98 commited on
Commit
26b030d
·
verified ·
1 Parent(s): e920e69

fix: robust duplicate capture dedupe by captureId and URL time window

Browse files
Files changed (1) hide show
  1. src-tauri/src/browser/commands.rs +1 -0
src-tauri/src/browser/commands.rs CHANGED
@@ -11,6 +11,7 @@ use crate::adblock::scripts;
11
  use crate::state::AppState;
12
 
13
  static SEEN_CAPTURE_IDS: OnceLock<Mutex<HashSet<String>>> = OnceLock::new();
 
14
 
15
  const CONTEXT_MENU_BLOCK_JS: &str = r#"
16
  (function(){
 
11
  use crate::state::AppState;
12
 
13
  static SEEN_CAPTURE_IDS: OnceLock<Mutex<HashSet<String>>> = OnceLock::new();
14
+ static RECENT_CAPTURE_KEYS: OnceLock<Mutex<HashMap<String, i64>>> = OnceLock::new();
15
 
16
  const CONTEXT_MENU_BLOCK_JS: &str = r#"
17
  (function(){