Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find URL functionality in code, readme still says the URL can be obtained. #89

Closed
ravik21 opened this issue Nov 4, 2020 · 1 comment

Comments

@ravik21
Copy link

ravik21 commented Nov 4, 2020

In the parseLinux, this is what returned in case if linux.

return {
		platform: 'linux',
		title: JSON.parse(result['_NET_WM_NAME(UTF8_STRING)'] || result['WM_NAME(STRING)']) || null,
		id: windowId,
		owner: {
			name: JSON.parse(result['WM_CLASS(STRING)'].split(',').pop()),
			processId
		},
		bounds: {
			x: parseInt(bounds['Absolute upper-left X'], 10),
			y: parseInt(bounds['Absolute upper-left Y'], 10),
			width: parseInt(bounds.Width, 10),
			height: parseInt(bounds.Height, 10)
		}
	};

But in the readme, it says the URL can be obtained.

@sindresorhus
Copy link
Owner

From the docs:

url (string?) - URL of the active browser tab if the active window is Safari, Chrome, Edge, or Brave (macOS only)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants