MregisterProtocolHandler
Bun

method

Navigator.registerProtocolHandler

scheme: string,
url: string | URL
): void;

Referenced types

class URL

The URL interface represents an object providing static methods used for creating object URLs.

MDN Reference