Cleanups for scrapers

This commit is contained in:
2026-04-10 10:04:20 -04:00
parent 0d5cc08bc0
commit 052a762182
15 changed files with 1411 additions and 567 deletions
+8 -4
View File
@@ -18,10 +18,14 @@
if (event.data?.source !== 'pokemon-api-interceptor') return;
// Forward API data to background script
chrome.runtime.sendMessage({
type: 'apiData',
data: event.data.data
}).catch(() => {});
try {
chrome.runtime.sendMessage({
type: 'apiData',
data: event.data.data
}).catch(() => {});
} catch (e) {
// Extension context invalidated (tab closing or extension reloaded)
}
});
// Inject the interceptor