MCPcopy Create free account
hub / github.com/angular/angular / focus

Method focus

packages/service-worker/worker/testing/clients.ts:37–43  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

35 }
36
37 async focus(): Promise<WindowClient> {
38 // This is only used for relatively ordering clients based on focus order, so we don't need to
39 // use `Adapter#time`.
40 this.lastFocusedAt = Date.now();
41 (this.focused as boolean) = true;
42 return this;
43 }
44
45 async navigate(url: string): Promise<WindowClient | null> {
46 (this.url as string) = url;

Callers

nothing calls this directly

Calls 1

nowMethod · 0.80

Tested by

no test coverage detected