MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / getLastFocusedWindowIds

Function getLastFocusedWindowIds

scripts/helpers/utils.js:261–269  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259}
260
261export const getLastFocusedWindowIds = () => {
262 return chrome.runtime.sendMessage({
263 action: "ufs-runInBackground",
264 data: {
265 fnPath: "getCache",
266 params: ["lastFocusedWindowIds"],
267 },
268 });
269};
270
271export const getLastFocusedTab = async () => {
272 const lastFocusedWindowIds = await getLastFocusedWindowIds();

Callers 1

getLastFocusedTabFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected