MCPcopy Create free account
hub / github.com/ZToolsCenter/ZTools / tryReadUrl

Method tryReadUrl

src/main/api/plugin/shell.ts:341–344  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

339 }
340
341 const tryReadUrl = async (): Promise<string | null> => {
342 const result = await WindowManager.readBrowserWindowUrl(browserName, windowInfo.hwnd!)
343 return typeof result === 'string' && result.trim() !== '' ? result.trim() : null
344 }
345
346 let url = await tryReadUrl()
347 if (!url && browserName === 'chrome') {

Callers

nothing calls this directly

Calls 1

readBrowserWindowUrlMethod · 0.80

Tested by

no test coverage detected