1
0
mirror of https://github.com/XFox111/TabsAsideExtension.git synced 2026-04-22 07:58:01 +03:00

fix: MAX_CAPTURE_VISIBLE_TAB_CALLS_PER_SECOND exceeded

This commit is contained in:
2025-05-08 06:59:55 +03:00
parent 24bf0e88ca
commit 9d250dc01d
+11 -1
View File
@@ -77,6 +77,9 @@ export default defineBackground(() =>
if (!tab.url || tab.status !== "complete" || !tab.active)
return;
if (graphicsCache[tab.url]?.capture || graphicsCache[tab.url]?.capture === null)
return;
try
{
// We use chrome here because polyfill throws uncatchable errors for some reason
@@ -92,7 +95,14 @@ export default defineBackground(() =>
};
}
}
catch { }
catch
{
graphicsCache[tab.url] = {
capture: null!,
preview: graphicsCache[tab.url]?.preview,
icon: graphicsCache[tab.url]?.icon
};
}
};
setInterval(() =>