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:
@@ -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(() =>
|
||||
|
||||
Reference in New Issue
Block a user