@@ -6,7 +6,6 @@ import init, { analyze_page_with_options, analyze_page, prune_for_api } from '..
66// This runs in an isolated environment, completely immune to page CSP policies
77
88
9- console . log ( '[Sentience Background] Initializing...' ) ;
109
1110// Global WASM initialization state
1211let wasmReady = false ;
@@ -22,7 +21,6 @@ async function initWASM() {
2221
2322 wasmInitPromise = ( async ( ) => {
2423 try {
25- console . log ( '[Sentience Background] Loading WASM module...' ) ;
2624
2725 // Define the js_click_element function that WASM expects
2826 // In Service Workers, use 'globalThis' instead of 'window'
@@ -36,8 +34,6 @@ async function initWASM() {
3634 await init ( ) ;
3735
3836 wasmReady = true ;
39- console . log ( '[Sentience Background] ✓ WASM ready!' ) ;
40- console . log (
4137 '[Sentience Background] Available functions: analyze_page, analyze_page_with_options, prune_for_api'
4238 ) ;
4339 } catch ( error ) {
@@ -124,7 +120,6 @@ async function handleScreenshotCapture(_tabId, options = {}) {
124120 quality,
125121 } ) ;
126122
127- console . log (
128123 `[Sentience Background] Screenshot captured: ${ format } , size: ${ dataUrl . length } bytes`
129124 ) ;
130125 return dataUrl ;
@@ -166,7 +161,6 @@ async function handleSnapshotProcessing(rawData, options = {}) {
166161 throw new Error ( 'WASM module not initialized' ) ;
167162 }
168163
169- console . log (
170164 `[Sentience Background] Processing ${ rawData . length } elements with options:` ,
171165 options
172166 ) ;
@@ -213,7 +207,6 @@ async function handleSnapshotProcessing(rawData, options = {}) {
213207 }
214208
215209 const duration = performance . now ( ) - startTime ;
216- console . log (
217210 `[Sentience Background] ✓ Processed: ${ analyzedElements . length } analyzed, ${ prunedRawData . length } pruned (${ duration . toFixed ( 1 ) } ms)`
218211 ) ;
219212
@@ -228,7 +221,6 @@ async function handleSnapshotProcessing(rawData, options = {}) {
228221 }
229222}
230223
231- console . log ( '[Sentience Background] Service worker ready' ) ;
232224
233225// Global error handlers to prevent extension crashes
234226self . addEventListener ( 'error' , ( event ) => {
0 commit comments