forked from icd/rentgen
Debugger port doesn't prove extension code executed (Firefox opens it). New approach: - Extension writes marker to browser.storage.local on init - Test script checks Firefox profile for storage.js file - Verifies _rentgen_init_timestamp and _rentgen_init_iso keys This proves: - background.ts executed - browser.storage.local.set() succeeded - Extension has working browser API access Non-invasive: storage is only used for automated tests 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
17 lines
503 B
TypeScript
17 lines
503 B
TypeScript
import { init } from "./memory";
|
|
|
|
// Use global browser object directly (available in extension context)
|
|
declare const browser: any;
|
|
|
|
init();
|
|
|
|
// Set storage marker for test verification (non-invasive, only for automated tests)
|
|
if (typeof browser !== 'undefined' && browser.storage) {
|
|
browser.storage.local.set({
|
|
'_rentgen_init_timestamp': Date.now(),
|
|
'_rentgen_init_iso': new Date().toISOString()
|
|
}).catch(() => {
|
|
// Silently fail if storage API not available
|
|
});
|
|
}
|