crossbind
GitHub
← All extensions

page-location

navigator.geolocation on macOS, which WKWebView leaves out.

Package @crossbind/extension-page-locationnpm ↗Source ↗

An app has it by having @crossbind/core-app-host, which lists it as a dependency: there is nothing to install or list.

What it does

A macOS page gets navigator.geolocation, which WKWebView gives a macOS page none of, where app.permissions lists the location. The system asks its user first.

Options

app.permissions.location turns it on, with the reason the system shows, as { location: 'To show where you are' }.

Platforms

macOS alone.

Replace or leave out

It holds the role page-location. An extension that gives replaces: 'page-location' takes it; app: { without: ['page-location'] } in crossbind.config.js leaves it out. Leaving it out while app.permissions.location is set stops the build. The guide shows how, and extensions.md what a replacement answers.

extensions.md has the hooks a replacement answers.

Type to search every guide page and section.
↑↓ navigate↵ openesc close