Skip to content

Commit

Permalink
[COMMUNITY] Fixing broken jest mock of the debounce utils method
Browse files Browse the repository at this point in the history
  • Loading branch information
cagonzalezcs committed Jan 16, 2025
1 parent cf2fbdf commit bc28fef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -983,7 +983,7 @@ export class CollectAutofillContentService implements CollectAutofillContentServ
const queueLength = this.mutationsQueue.length;

if (!this.domQueryService.pageContainsShadowDomElements()) {
// Checking if a page contains shadowDOM elements is a heavy operation and doesn't have to be done immediately, so we can calls this within an idle moment on the event loop.
// Checking if a page contains shadowDOM elements is a heavy operation and doesn't have to be done immediately, so we can call this within an idle moment on the event loop.
requestIdleCallbackPolyfill(this.checkPageContainsShadowDom, { timeout: 500 });
}

Expand Down

0 comments on commit bc28fef

Please sign in to comment.