1
0
mirror of https://github.com/bitwarden/browser synced 2026-02-08 12:40:26 +00:00

Finish renaming method.

This commit is contained in:
Miles Blackwood
2026-02-03 17:02:28 -05:00
parent 490e615ff2
commit ab47094ff7
3 changed files with 4 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ export interface DomQueryService {
mutationObserver?: MutationObserver,
forceDeepQueryAttempt?: boolean,
): T[];
checkPageContainsShadowDom(): boolean;
updatePageContainsShadowDom(): boolean;
checkMutationsInShadowRoots(mutations: MutationRecord[]): boolean;
checkForNewShadowRoots(): boolean;
resetObservedShadowRoots(): void;

View File

@@ -47,7 +47,7 @@ describe("DomQueryService", () => {
expect(globalThis.addEventListener).toHaveBeenCalledWith(
"load",
domQueryService["checkPageContainsShadowDom"],
domQueryService["updatePageContainsShadowDom"],
);
});

View File

@@ -135,10 +135,10 @@ export class DomQueryService implements DomQueryServiceInterface {
*/
private async init() {
if (globalThis.document.readyState === "complete") {
this.checkPageContainsShadowDom();
this.updatePageContainsShadowDom();
return;
}
globalThis.addEventListener(EVENTS.LOAD, this.checkPageContainsShadowDom);
globalThis.addEventListener(EVENTS.LOAD, this.updatePageContainsShadowDom);
}
/**